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{1,3}(?:\.?\d{3})*(?:,\d{2})?$)|(?:^\d{1,3}(?:,?\d{3})*(?:\.\d{2})?$)
/
gm
Input 1
1
New
1 1234 123456 1.234 123.456 1.234.567 1,23 12345,67 1234567,89 1.234,56 123.456,78 1.234.567,89
Substitution
1 1234 123456 1.234 123.456 1.234.567 1,23 12345,67 1234567,89 1.234,56 123.456,78 1.234.567,89