On Tue, Dec 6, 2011 at 2:38 PM, Randal L. Schwartz <mer...@stonehenge.com>wrote:
> >>>>> "Rob" == Rob Coops <rco...@gmail.com> writes: > > Rob> The biggest problem with email addresses is that the rules of how an > email > Rob> address can be formatted are so relaxed and thus so complex that > there is > Rob> to the best of my knowledge not a single person that has ever managed > to > Rob> create a 100% correct regular expression that checks if a string does > in > Rob> fact match all criteria of a valid email address. > > False. > > http://www.ex-parrot.com/pdw/Mail-RFC822-Address.html > That's only RFC822... And it makes us all want to tear our eyes out. So why not make it readable and RFC 5322 compliant? http://stackoverflow.com/a/1917982 :)