Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
\b(\d{3})-(\d{3})-(\d{4})\b
/
gm
Input 1
New
555-123-1234 123555-123-1234 blah 555-123-1234 asdasda\ blah555-123-1234 555-123-1234blah
Extraction
555-123-1234 123555-123-1234 blah 555-123-1234 asdasda\ blah555-123-1234 555-123-1234blah