Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
r"
^((?:[+-]?\d+(?:[.]\d+)?)(?:[ \t]|$))*$
"
gm
Input 1
1
New
Should match: 15 35 -45 8 -2.3 4564.18 56 22 1 2 3 +45 Not match two spaces between 1 23 two decimals: 1..23 spaces at the end: 123