On Fri, Jul 20, 2012 at 4:13 PM, Emond Papegaaij <[email protected]> wrote: > [x] Keep it as currently implemented > > EmailAddressValidator is too strict, but at least you can see what it does. > The regexp in RfcCompliantEmailAddressValidator is crazy, outdated and > probably very inefficient. IMHO, we should mark it as deprecated. The best > solution would be to use a parser generator to generate a parser for email > addresses.
-1 on doing ourselves. It is very easy to make it worse (EmailAddressValidator is our failed attempt). The regular expression pattern is at least verified to be correct for RFC822. Anything we concoct won't be. The only other option I would likely propose is: Lez Hazlewood's email address validator: http://code.google.com/p/emailaddress/source/browse/trunk/java/src/main/java/com/google/code/emailaddress/EmailAddress.java or http://code.google.com/p/emailaddress/source/browse/trunk/java/src/main/java/com/google/code/emailaddress/EmailAddress2.java Fortunately, both are ASL2 licensed. Martijn
