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
/
(?P<isminus>-)? (?P<number> (?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
12341234.1234 123,456.2
Extraction
12341234.1234 123,456.2