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|[1-9]\d*)(?:\.\d+)?$
/
gm
Input 1
New
VALID +1 -1 1 +1.0 -1.0 1.0 +0.01 -0.01 0.01 +111.111 -111.111 111.111 INVALID +-0 00 01 1.1.1 1,0 abc 1.