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
r"
\b(?!\d{4}\b)[0-9]+(?:,(?!\d{4}\b)[0-9]+)*\b
"
g
Input 1
New
978,763,835,536,363 123 123,456 123456,4321 excluding the years like 1200 till 2020
Substitution
978,763,835,536,363 123 123,456 123456,4321 excluding the years like 1200 till 2020