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
/
^([a-z]+)(?:(-?\d*.?\d+)[^\d\n\r.-]*(-?\d*.?\d+)?)?
/
gim
Input 1
1
New
M-11.11,-22 L.33-44 ac55 66 h77 M88 .99 Z
Extraction
M-11.11,-22 L.33-44 ac55 66 h77 M88 .99 Z