News for hackers. Stuff that matters.
Re:It's Impossible to Validate an Email Address by Freak_NL on Sunday April 03, 2016 @11:58AM (#11416535)
That is the only correct answer.

    .+@.+
In human language: an email address consists of something, an @, and something.

That's it. The name part can be anything; so don't validate it beyond having a character.

We don't have one-character domains yet, but there is no reason to exclude them. It is already possible to arrange your own top-level domain if your pockets are deep enough (.google), so don't be surprised if some megacorp starts using a top-level domain without any subdomains. Don't validate the domain part beyond having a character.

There are no comments on this comment yet.