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
/
^[+-]?\d+(?:\.\d+)?$
/
gm
Input 1
1
New
52.3 42 -6 52.0 0.61 +0.6 Does not match: 52. abc test 1.6.1.4 192.0.0.1 -6.0.1 +.8 ++6 -6- -3.