Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Community Library
How to contribute
x
Simple email splitter
Open Workspace
PCRE (Legacy)
Match
Created 2015-07-21 18:58
1
Regular Expression
/
^
(?'User'
[
_a
-
z0
-
9-
]
+
(
\.
[
_a
-
z0
-
9-
]
+
)*
)
@
(?'Domain'
[
a
-
z0
-
9-
]
+
(
\.
[
a
-
z0
-
9-
]
+
)*
\.
[
a
-
z
]
{2,4}
)
$
/
i
Description
Split the email and get the user and domain.
Submitted by
Matías Pizarro González