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
r"
(?<=\b)\w([\w\.\-_0-9])*(@| at )[\w0-9][\w\-_0-9]*((\.| DOT )[\w\-_0-9]+)+(?=\b)
"
gmi
Input 1
test@email.com test-user@email.com test.user@email.com 33test33@email.com test99user-_22@email.com test@e.mail test@g.mail test AT email.com test AT email DOT com test AT email dot com test at email.com test@email DOT com this is not an email @twitterUser this is just an an string el@ Valid ------- first.last@iana.org 1234567890123456789012345678901234567890123456789012345678901234@iana.org x@x23456789.x23456789.x23456789.x23456789.x23456789.x23456789.x23456789.x23456789.x23456789.x23456789.x23456789.x23456789.x23456789.x23456789.x23456789.x23456789.x23456789.x23456789.x23456789.x23456789.x23456789.x23456789.x23456789.x23456789.x23456789.x2 1234567890123456789012345678901234567890123456789012345678@12345678901234567890123456789012345678901234567890123456789.12345678901234567890123456789012345678901234567890123456789.123456789012345678901234567890123456789012345678901234567890123.iana.org user+mailbox@iana.org customer/department@iana.org customer/department=shipping@iana.org cal(w
Extraction
test@email.com test-user@email.com test.user@email.com 33test33@email.com test99user-_22@email.com test@e.mail test@g.mail test AT email.com test AT email DOT com test AT email dot com test at email.com test@email DOT com this is not an email @twitterUser this is just an an string el@ Valid ------- first.last@iana.org 1234567890123456789012345678901234567890123456789012345678901234@iana.org x@x23456789.x23456789.x23456789.x23456789.x23456789.x23456789.x23456789.x23456789.x23456789.x23456789.x23456789.x23456789.x23456789.x23456789.x23456789.x23456789.x23456789.x23456789.x23456789.x23456789.x23456789.x23456789.x23456789.x23456789.x23456789.x2 1234567890123456789012345678901234567890123456789012345678@12345678901234567890123456789012345678901234567890123456789.12345678901234567890123456789012345678901234567890123456789.123456789012345678901234567890123456789012345678901234567890123.iana.org user+mailbox@iana.org customer/department@iana.org customer/department=shipping@iana.org cal(w