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
/
^(?!(\d)\1{2}-(\d)\1{1}-(\d)\1{3})$|^(?!(\d)\1{8})$
/
gm
Input 1
1
New
888888888 123456789 888-88-8888 123-45-6789 111-22-3333 333-33-3333
Substitution
888888888 123456789 888-88-8888 123-45-6789 111-22-3333 333-33-3333