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