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
Valid Telephone Number
Open Workspace
JavaScript
Match
Created 2015-12-09 01:04
10
Regular Expression
/
(
^
(
1
?
)(
\s
?
)(
[
\s
]
?
)(
(
\(
\d
{3}
\)
)
|
(
\d
{3}
)
)(
[
\s
]
?
)(
[
\s
-
]
?
)(
\d
{3}
)(
[
\s
-
]
?
)(
\d
{4}
)+
$
)
/
gmi
Description
This regex validates varying types of telephone numbers.
Submitted by
Adam Recvlohe