DEV Community

loading...

Discussion on: JS: Check if an email is valid

Collapse
mellen profile image
Matt Ellen

The full spec for valid email addresses allows for comments in the email address! It's quite ridiculous. This means that any regular expression is not sufficient to comply with the RFC.

RFC5322

Collapse
inhuofficial profile image
InHuOfficial

Oh dear, Today I Learned that some people are insane, who the hell puts comments in an email address??? lol.

Thanks for that Matt, one to add to my bag of useless facts! 🤣

Forem Open with the Forem app