Hacker News new | ask | show | jobs
by oinopion 5475 days ago
Cool, they have just broken most of email regexps.
3 comments

No. There are 307 top-level domains right now and ICANN has added several dozen top-level domains in the last year and your regexp is probably already broken. You can be sure anyone using regular expressions has not been matching them correctly for some time. If you are using regexps, you're doing it wrong.
Legacy is a drag on any system. It has to be supported for those who followed best practices but not for those who followed worst practices. Don't hold progress back for them.
Funny, but email validations should already just check that the address contains an @ symbol and leave it at that.
uh, nope. Email validation should check there's a valid MX record for the domain in question, and leave it at that.
Or a valid address record. Mailers fall back to 'A' records in the absence of a 'MX' record.
yes, and we could continue into checking something is actually listening for mail there, etc. But you get my point :)
They should also check that neither part is empty. But other than that you are right.