Hacker News new | ask | show | jobs
by acmecorps 1894 days ago
I used to do complex email validations (like regexes etc), but have avoided using them for a long time. Currently, my email validations are 3 steps:

1. Using the <input type="email">

2. Checking if "@" exists

3. Sending the actual email (which practically speaking - is the actual validation that I needed)

Covers 99.99% of all cases I say.

1 comments

Yeap. \A.+@.+\z and try it.