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
/
(?<=^|\s)(?:0|-?[1-9]\d*|-?[1-9]\d{0,2}(?:,\d{3})+)(?=\s|$)
/
gm
Input 1
1
New
561,085 3,894,320 -59,099 1,000 1000 -1000 1 -1 0 -01 01393 01,300,00 -04,044
Substitution
561,085 3,894,320 -59,099 1,000 1000 -1000 1 -1 0 -01 01393 01,300,00 -04,044