Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
@"
^(?:(?!\.)(?:[\w]+(?:(?![.+%/!-])?[.+%/!-])?)*[^.\s]|"".+"")@(?:\[(?:\d{3}\.?){4}\]|\[IPv6(?::[0-9a-z]{4})+\]|(?:[a-zA-Z0-9]{1,}[.-])+(?:[a-zA-Z0-9]{2,})+?)$
"
gm
Unit Tests
simple@example.com
→ regex does match
very.common@example.com
→ regex does match
FirstName.LastName@EasierReading.org
→ regex does match
x@example.com
→ regex does match
long.email-address-with-hyphens@and.subd…
→ regex does match
user.name+tag+sorting@example.com
→ regex does match
name/surname@example.com
→ regex does match
example@s.example
→ regex does match
"
"@example.org
→ regex does match
"john..doe"@example.org
→ regex does match
mailhost!username@example.org
→ regex does match
"very.(),:;<>[]\".VERY.\"very@\\
\"very\…
→ regex does match
user%example.com@example.org
→ regex does match
user-@example.org
→ regex does match
postmaster@[123.123.123.123]
→ regex does match
postmaster@[IPv6:2001:0db8:85a3:0000:000…
→ regex does match
_test@[IPv6:2001:0db8:85a3:0000:0000:8a2…
→ regex does match
admin@example
→ regex does not match
I❤️CHOCOLATE@example.com
→ regex does not match
abc.example.com
→ regex does not match
a@b@c@example.com
→ regex does not match
a"b(c)d,e:f;g<h>i[j\k]l@example.com
→ regex does not match
just"not"right@example.com
→ regex does not match
this
is"not\allowed@example.com
→ regex does not match
this\
still\"not\\allowed@example.com
→ regex does not match
1234567890123456789012345678901234567890…
→ regex does not match
i.like.underscores@but_they_are_not_allo…
→ regex does not match