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
Phone number regex
Open Workspace
Python
Match
Created 2022-04-18 03:58
0
Regular Expression
r"
^\s
*
(?:
\+
?
(
\d
{1,3}
)
\s
*
)?(
\s
?
\(
?
\d
{2}
\)
\s
?
)?(
\s
?
[
-.
(
]
*
(
\d
{3}
)
[
-.
)
]
*
)?(
(
\d
{3,4}
)
[
-.
]
*
(
\d
{2,5}
)(?:
[
-.x
]
*
(
\d
+
)
)?
)
\s
*
$
"
gm
Description
REGEX to test various phone numbers
Submitted by
Drew Recker