Re: different results matching regex with SDK 1.4.2

2003-12-09 Thread Oleg Sukhodolsky
>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. I think this is because of the bug 2121 ('.' or '-' in bracket expression gives unexpected). With best regards, Oleg.

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\\-]+)

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