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
/
^((100((\.|,)[0-9]{1,2})?)|([0-9]{1,2}((\.|,)[0-9]{0,2})?))$
/
Unit Tests
100
→ regex does match
0
→ regex does match
10
→ regex does match
50
→ regex does match
1,56
→ regex does match
1.25
→ regex does match
50,5
→ regex does match
200
→ regex does not match
250
→ regex does not match
275.25
→ regex does not match
100-2
→ regex does not match
1-2
→ regex does not match
-12
→ regex does not match
-12.5
→ regex does not match
-1,5
→ regex does not match
1500
→ regex does not match
100,00
→ regex does match
empty string
→ regex does not match