Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
(?<!\S)\$\d{1,3}(?:,\d{3})*(?:\.\d+)?(?!\S)
/
gm
Input 1
1
New
$123 $123.456 $123,456 $123,456.789 $12,000,000 aaaa$42,000,00 $42,000,000aaa aaa$42,000,000aaaa
Substitution