Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Community Library
How to contribute
x
Decimal Number
Open Workspace
JavaScript
Match
Created 2014-10-03 05:32
-2
Regular Expression
/
\b
(
(?:
\d
{1,3}
)(?:
(
[
,.
'
]
?
)
\d
{3}
)?(?:
\2
\d
{3}
)*
)(?:
(?:|
(?!
\2
)
)(
[
,./
]
)(
\d
+
)
)?
\b
/
Description
Parse decimal numbers with optional thousands and/or decimal separator.
#i18n #l11n #international
Submitted by
Andreas Pizsa