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
US phone number
Open Workspace
PCRE2 (PHP)
Match
Created 2021-07-03 04:46
2
Regular Expression
/
(
\+
?
(
\b
1
)?
[
\
.
\/
-
]
?
(
(?(2)|
(
\b
)
)
|
(
\(
)
)
\d
{3}
(?
(?<=
\(
\d
{3}
)
\)
|)
[
\
.
\/
-
]
?
)?(?(1)|
\b
)
\d
{3}
[
\
.
\/
-
]
?
\d
{4}
[
\
]
?
(
[
xX
]
[
\
]
?
\d
{1,5}
)?
\b
/
gm
Description
US phone number, try to catch as many as possible
Submitted by
Anonymous