Skip to content

Comment on This a valid email address: t AT lk.parent

Comments

The point of validation is to help users signing up for web sites. A fair percentage enter their email wrong, like

bill.smith@gmail dave@aol bob

You can only help them if you give them feedback immediately. If you let them register with a broken email address, they're hosed.

The problem with your script, though is that you have to manually update it, like you did with aero, museum, xxx, etc. A much better, albeit slightly more expensive solution, is to get the domain and see if it actually exists and has an mx record, because as this shows, there are times when that regex falls apart.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.