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}(?:(?:\.\d{2}){3}|\d{6})$
/
gm
Input 1
1
New
12.45.7810 12345678 12.34.56.78 1.234.56.78 12.45.7816
Substitution
12.45.7810 12345678 12.34.56.78 1.234.56.78 12.45.7816