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
/
^(?!123([ -]?)45([ -]?)6789)(?!\b(\d)\3+\b)(?!000|666|900|999)[0-9]{3}([ -]?)(?!00)[0-9]{2}\4(?!0000)[0-9]{4}$
/
gm
Input 1
1
New
899-45-6789 001-23-4567 232456789 232 45 6789 123456780 123-45-6780 123456789 123 45 6789 123-45-6789 111111111 111-11-1111 422-12 1212 12345 6789 123 456789 123x45x6789 ABCDEEEEE 1234567890123 000-45-6789 123-00-6789 123-45-0000 666-45-6789
Substitution