Re:Stop validating email addresses with your complex regex
by rtp on Thursday September 06, 2012 @05:07PM
(#4486240)
A better way is to check that the email the user entered matches a typical email format, and if the email doesn't match, then warn the user that he/she might've entered the wrong email address (for example writing foobar@gmail, or [email protected].).
[ Parent
| on HN ]
Re:Stop validating email addresses with your complex regex
by Wicher on Thursday September 06, 2012 @05:24PM
(#4486336)
I think [email protected]. should actually work. IIRC, that last dot is the root of the DNS hierarchy.
Try http://news.ycombinator.com./ ;-)