Re: different results matching regex with SDK 1.4.2

2003-12-08 Thread Aaron Hughes
Victor, I'm not sure if it's correct or incorrect as far as the definition, but it would appear the "-" after the 9 isn't being treated as a character, but a range. The following seems to give your desired result. "^[_A-Za-z0-9\\-]+(\\.[_A-Za-z0-9\\-]+)[EMAIL PROTECTED](\\.[A-Za-z0-9\\-]+)

RE: Jakarta RegEx vs Java Regex

2003-12-08 Thread Rod Macpherson
DOH! I just realized you were talking about reg-ex versus the build-in logging. I need more coffee. My first clue should have been this is the regexp-user mailing list:) Anyway, same reasoning applies for going with the jakarta package. -Original Message- From: Dubois, Jeff [mailto:[EMAI

RE: Jakarta RegEx vs Java Regex

2003-12-08 Thread Dubois, Jeff
Thanks for your response Rod! Can someone list for me exactly what the advantages of the jakarta package are? It appears from the Java API documentation that the Java regex does not contain: 1. The conditional constructs (?{X}) and (?(condition)X|Y). 2. The e

different results matching regex with SDK 1.4.2

2003-12-08 Thread Victor Okunev
Hi, I am trying to verify e-mail address format using the following regular expression: "^[_A-Za-z0-9-]+(\\.[_A-Za-z0-9-]+)[EMAIL PROTECTED](\\.[A-Za-z0-9-]+)*$" I am getting different results when I use SDK 1.2.4 and Apache Regexp. It seems that the latter is less strict. For example, both stat

RE: Jakarta RegEx vs Java Regex

2003-12-08 Thread Rod Macpherson
Asked the same thing awhile back and the response was the jakarta stuff is better (their track record would not call that in to question) and of course it does not require a 1.4 JDK. One thing that did bug me about the build-in was that the logger did not take an object as a constructor so you had

Jakarta RegEx vs Java Regex

2003-12-08 Thread Dubois, Jeff
What are the advantages of using the Jakarta's RegEx package versus the Java built-in RegEx, now that Java has built-in RegEx's? Thanks! Jeff - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mai