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"
\d+( \d{3})+|\d+[,.]\d+|\d+\d+( \d{3})+|\d+
"
gm
Input 1
1
New
MATCH 3 13 330,1 3.1021 12 300 1,000,000 20.000.000 1,044.12 1 044,120.12 What the regex should NOT match as one number: RULE 1 → No SYMBOL next to each other: 3..4 3,,4 3 4 10.,2 10.,.2 10 ,2 10..... 2 RULE 2 → No SYMBOL after DECIMAL_MARKER: 12,300.3 3 12 300.230,12.3 RULE 3 → 3 numbers after THOUSAND_SEPARATOR: 1 3 200 10 200 1232 10 111 22 12,12.23 RULE 4 → No multiple SYMBOL for THOUSAND_SEPARATOR. Stick to one: 1 123,123 123 RULE 5 → No DECIMAL_MARKER at the beginning of the NUMBER. Must match here 40 and not 0.40: .40 ,40
Substitution
MATCH 3 13 330,1 3.1021 12 300 1,000,000 20.000.000 1,044.12 1 044,120.12 What the regex should NOT match as one number: RULE 1 → No SYMBOL next to each other: 3..4 3,,4 3 4 10.,2 10.,.2 10 ,2 10..... 2 RULE 2 → No SYMBOL after DECIMAL_MARKER: 12,300.3 3 12 300.230,12.3 RULE 3 → 3 numbers after THOUSAND_SEPARATOR: 1 3 200 10 200 1232 10 111 22 12,12.23 RULE 4 → No multiple SYMBOL for THOUSAND_SEPARATOR. Stick to one: 1 123,123 123 RULE 5 → No DECIMAL_MARKER at the beginning of the NUMBER. Must match here 40 and not 0.40: .40 ,40