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
/
(^.*|\n\s*\S+)|\S+(?= .*\n)
/
g
Input 1
1
New
67 4 -8 5 13 9 13 42 4 -7 1 1 3 -9 29 16 99 8 77 0
Extraction
67 4 -8 5 13 9 13 42 4 -7 1 1 3 -9 29 16 99 8 77 0