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
Public Phone
Open Workspace
PCRE2 (PHP)
Match
Created 2022-04-20 13:05
0
Regular Expression
/
(
7
|
8
)(
\
|
-
)?
\(
?
9
\d
{2}
\)
?
(
\
|
-
)
\d
{2,3}
(
\
|
-
)?
\d
{2,3}
(
\
|
-
)?
\d
{2,3}
/
gm
Description
Public phone regex
Submitted by
AlexVerkhov