0

I'm using RFC 5322's simplified regular expression in my application to validate any kind of possible email addresses:

[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?

But, i noticed that the string [email protected] is valid for this regular expression (tested on RegExr):

enter image description here

According to IANA, none of the valid top-level domains contains only 1 character.

My real doubt is: is RFC 5322 a reliable source to get a email validation regex? May I use any other? Or [email protected] is really valid for some specific case?

0 Answers0