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"
(?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
Input 1
1.42 a -100,000.23
Extraction
1.42 a -100,000.23