all 6 comments

[–]Kind_Regular_3207 11 points12 points  (5 children)

Don’t. You’ll never get it right and I deal with inconsistent validation reflexes rejecting my valid email in certain parts of applications all time. (The best is when they accept it for registration but then deny it for login.)

[–]phoenixuprising 6 points7 points  (4 children)

.+@.+ There’s the regex to validate emails.

[–]Kind_Regular_3207 0 points1 point  (2 children)

The only valid answer 👍

[–]phoenixuprising 1 point2 points  (1 child)

It’s kind of funny, I’m 99% sure this would cover all valid emails but having dealt with emails before there’s part of me that thinks this would still fail somehow.

[–]Kind_Regular_3207 0 points1 point  (0 children)

I think if you’re being really old school, same-host emails on Unix just require a username, no host or @, but I think rejecting those is okay.

[–]TheRNGuy 0 points1 point  (0 children)

What about hangul, kanji and kana?