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*(?:\.\d{1,2})?|0\.(?:[1-9]\d?|\d[1-9]))$
/
gm
Input 1
1
New
//Zero 0 01 0.1 0.12 0.123 0. 0.00 0.01 0.10 // Decimal 12.2 12.23 12.234 123.12 //Min/Max 0 1 12 123 123456789 // Plus + +1 +12345 +.123 +1. +1.23 +0.12 //Other 1b2 1 2