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
Input 1
1
New
test@test.com thiis+@test.ua.com tis.will+work@gm.com simple@example.com very.common@example.com FirstName.LastName@EasierReading.org x@example.com long.email-address-with-hyphens@and.subdomains.example.com user.name+tag+sorting@example.com name/surname@example.com admin@example example@s.example " "@example.org "john..doe"@example.org mailhost!username@example.org "very.(),:;<>[]\".VERY.\"very@\\ \"very\".unusual"@strange.example.com user%example.com@example.org user-@example.org postmaster@[123.123.123.123] postmaster@[IPv6:2001:0db8:85a3:0000:0000:8a2e:0370:7334] _test@[IPv6:2001:0db8:85a3:0000:0000:8a2e:0370:7334] abc.example.com a@b@c@example.com a"b(c)d,e:f;g<h>i[j\k]l@example.com just"not"right@example.com this is"not\allowed@example.com this\ still\"not\\allowed@example.com 1234567890123456789012345678901234567890123456789012345678901234+x@example.com i.like.underscores@but_they_are_not_allowed_in_this_part.com
Extraction
test@test.com thiis+@test.ua.com tis.will+work@gm.com simple@example.com very.common@example.com FirstName.LastName@EasierReading.org x@example.com long.email-address-with-hyphens@and.subdomains.example.com user.name+tag+sorting@example.com name/surname@example.com admin@example example@s.example " "@example.org "john..doe"@example.org mailhost!username@example.org "very.(),:;<>[]\".VERY.\"very@\\ \"very\".unusual"@strange.example.com user%example.com@example.org user-@example.org postmaster@[123.123.123.123] postmaster@[IPv6:2001:0db8:85a3:0000:0000:8a2e:0370:7334] _test@[IPv6:2001:0db8:85a3:0000:0000:8a2e:0370:7334] abc.example.com a@b@c@example.com a"b(c)d,e:f;g<h>i[j\k]l@example.com just"not"right@example.com this is"not\allowed@example.com this\ still\"not\\allowed@example.com 1234567890123456789012345678901234567890123456789012345678901234+x@example.com i.like.underscores@but_they_are_not_allowed_in_this_part.com