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
/
^(?<negative>\-?)(?<preceding>0?)(?<main>[0-9]+\.??[0-9]*?)(?<trailing>\.?0*)$
/
mg
Input 1
New
00.00 00.010 0. 11.010 11 123.123 -239.010 010.0010 -001.10
Substitution
$1$3
00.00 00.010 0. 11.010 11 123.123 -239.010 010.0010 -001.10