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)\2(?!.+\2)){2}\2(\d)\3{3}$
/
gm
Input 1
New
001112222 121112222 112233333 111223333 111113333 112221111 002223333
Substitution
001112222 121112222 112233333 111223333 111113333 112221111 002223333