News for hackers. Stuff that matters.
Re:Email Regex that works 99.99% by michaelmcmillan on Sunday February 22, 2015 @08:15AM (#9089268)
I simply don't validate emails up front anymore. The only thing I check for is if the string contains an @-char, I only do that to be nice if it's left out by accident. Instead of having a monstrous regex pattern in my code I simply email a confirmation link the user must confirm.
Re:Email Regex that works 99.99% by hobs on Sunday February 22, 2015 @08:34AM (#9089329)
That's the thing, the only way to validate an email address anyway is to actually have the user take some action to do so. Otherwise, I would question how important setting up the email thing is in the first place.