MeidokonWiki:

The ultimate email address regex

God-fucking-yes:

/^([\w\!\#$\%\&\'\*\+\-\/\=\?\^\`{\|\}\~]+\.)*[\w\!\#$\%\&\'\*\+\-\/\=\?\^\`{\|\}\~]+@((((([a-z0-9]{1}[a-z0-9\-]{0,62}[a-z0-9]{1})|[a-z])\.)+[a-z]{2,6})|(\d{1,3}\.){3}\d{1,3}(\:\d{1,5})?)$/i

Just do it once, and get it right.

It's also a little more succinct than this one: http://www.ex-parrot.com/pdw/Mail-RFC822-Address.html

MeidokonWiki: Ultimate_email_address_regex (last edited 2010-06-30 05:39:37 by furinkan)