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
/
^\$?([0-9]{1,3},([0-9]{3},)*[0-9]{3}|[0-9]+)(\.[0-9][0-9])?$
/
mg
Test String
New
$500 $5,00 $5,000 $5.0 $5. $5.00 $5.000 $5,.5 500 5,000 5,00 5,0 5.0 5.00 5.000 5.23 2.342 $5,5,5 $5,000 $5,000,0 $5,000,00 $5,000,000 $5,0000
Substitution
Processing...