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+)*\)|(?<!\S)\d+(?:[.,]\d+)*(?!\S)
/
gm
Input 1
1
New
(1.000.000,00) //match (1.000,00) //match (100,00) //match (10) //match (1) //match (2.000.000,00 //dont't match (2.000,00 //dont't match (200,00 //dont't match (20 //dont't match (2 //dont't match 3.000.000,00) //dont't match 3.000,00) //dont't match 300,00) //dont't match 30) //dont't match 3) //dont't match 4.000.000,00 //should match 4.000,00 //should match 400,00 //should match 40 //should match 4 //should match
Substitution