On Mon, Jul 28, 2008 at 9:19 AM, Phlip [email protected] wrote:
Actually I believe it can be done, but it’s next to useless to do so.
There’s a nasty regex that claims to validate all RFC 2822 compliant
email addresses over at regular-expressions.info, and it was done so
just to show that it really is a bad idea. The regex Is really really
hideous, but the article on why not to do it is well done.
For those who don’t want to read the article, the last paragraph is
one that should be remembered when using regexes…
“Don’t blindly copy regular expressions from online libraries or
discussion forums. Always test them on your own data and with your own