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
/
^(?=(?:-?[\.0-9]{3,8}$)|(?:-?[0-9]{1,7}$))(-?[0-9]+)(?:\.([0-9]+))?$
/
gm
Input 1
1
New
1111.111 11.11 111.11 -1111.11 1.1111 11.111 -111.111 11.11 1111.1 1111.1111
Extraction
1111.111 11.11 111.11 -1111.11 1.1111 11.111 -111.111 11.11 1111.1 1111.1111