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
/
^(?=.+)(?:[1-9]\d*|0)?(?:\.\d+)?$
/
gm
Input 1
New
123456 123. . .123 123.154574 .545.4584 +1454 +487.54587 -54587.7487 .1225- .456+ 454.4+ 454.455874 45.45745687687.5678
Substitution
123456 123. . .123 123.154574 .545.4584 +1454 +487.54587 -54587.7487 .1225- .456+ 454.4+ 454.455874 45.45745687687.5678