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
Ultimate number selecter
Open Workspace
Python
Match
Created 2025-10-07 02:25
1
Regular Expression
r"
(?P<isminus>
-
)?
(
(?P<justdecimal>
(?P<justdecpoint>
\.
)
(?P<justdecdigits>
\d
+
)
)
|
(?P<integer>
(?P<withcommas>
(?:
\d
{1,3}
)
(?:
,
\d
{3}
)+
)
|
(?P<nocommas>
\d
+
)
)
(?P<decimal>
(?P<decpoint>
\.
)
(?P<decdigits>
\d
+
)
)?
)
"
gmx
Description
Selects all forms of numbers, ranging from decimals, to numbers with commas
Submitted by
Anonymous