Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Regular
Expressions
101
Regular
Expressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
^\d{0,7}(?:\.\d{2}|\d{0,2})$
/
gm
Input 1
1
New
Match type: .01 1 1.01 0 1234567.89 Unmatch type: .012 1.098 123.456
Extraction