Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
98codes
· 3y ago · 0 comments
As someone who uses an email address in the form of <word>@<numeral>.<word>, I can tell you from lots of experience that entirely too many devs in the world thought "can't we just" and got it horribly wrong.
Comments
[–]
theonething
3y ago
This is the first result in Google for "regex for email validation" and it validates your email format correctly
/^\w+([\.-]?\w+)
@\w+([\.-]?\w+)
(\.\w{2,3})+$/