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
Universal Phone Regex
Open Workspace
PCRE2 (PHP)
Match
Updated 2026-01-13 23:24
2
Regular Expression
/
\+
?
(
\d
{1,2}
)?
[
.-
]
?
\(
?
(
\d
{3}
)
\)
?
[
.-
]
?
(
\d
{3}
)
[
.-
]
?
(
\d
{4}
)
/
gm
Description
Just a simple regex to detect phone numbers Should work in just about any regex flavor.
Submitted by
User9684