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
/
^(?!0[0-9])[0-9]+(\.(?>[0-9])[0-9]{0,5})?$
/
gm
Input 1
1
New
0 0. 0.0 0.00 0.000 00.0 1 1. 1.012 1.00 1.0100 123.0 123. 123.00 01
Substitution
0 0. 0.0 0.00 0.000 00.0 1 1. 1.012 1.00 1.0100 123.0 123. 123.00 01