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
/
[+-]?(\d*|\d{1,3}(,\d{3})*)(\.\d+)?\b
/
gm
Input 1
1
New
There are 1,000 people in those 3 towns. 1,000 3
Substitution
There are 1,000 people in those 3 towns. 1,000 3