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
/
\b(0\.\d{1,8}|\d+(?!.)|(?!0)\d+\.\d{1,8})\b|([\d\w.]+)
/
gm
Input 1
1
New
0.123456789 0.12345678 100 100.123 5.12457 5 5.1 abc 00.12345678
Substitution
$2
0.123456789 0.12345678 100 100.123 5.12457 5 5.1 abc 00.12345678