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(\.[0-9]+)?)|([1-9]+[0-9]*(\.[0-9]+)?))$
/
gm
Input 1
1
New
0 1 12 123 0.1 1.12 12.0123 1.23 -1 -12 -0.1 -1.12 -12.0123 -01.23 01.23 3000001230120312030123011.2323 12. --123 -2323- 23.23.23 34..34
Extraction
0 1 12 123 0.1 1.12 12.0123 1.23 -1 -12 -0.1 -1.12 -12.0123 -01.23 01.23 3000001230120312030123011.2323 12. --123 -2323- 23.23.23 34..34