News for hackers. Stuff that matters.
Re:How not to validate email addresses by cheald on Monday October 14, 2013 @08:21PM (#6550565)
Why exactly is an RFC 2822 parser wrong? It is by definition the right way to validate an email address.

The RFC specs emails as a CF grammar, not a regular grammar, which is why validating all possible emails with regexes is so hard. Use a parser and call it done.

If your goal is "don't prevent a user from signing up" then why validate emails at all? Why not just accept anything, and whinge at them after you've already captured them in your system?

There are no comments on this comment yet.