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 check format
Open Workspace
JavaScript
Match
Created 2018-07-17 15:23
0
Regular Expression
/
(
^\d
{1,3}
(
(
\s
|
-
)
)?
\(
?
\d\d\d
\)
?
|
^
\(
?
\d\d\d
\)
?
)(
(
\s
|
-
)
)?
\d\d\d
(
(
\s
|
-
)
)?
\d\d\d\d$
/
gm
Description
Allows optional variation in spaces and dashes and brackets as well as international numbers
Submitted by
Anonymous