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{6}(?=(\d))(?:\1\d){3}$
/
gm
Input 1
New
502632959793 - TRUE 125632757773 - TRUE 475632353773 - FALSE
Extraction
502632959793 - TRUE 125632757773 - TRUE 475632353773 - FALSE