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
/
^[\h\d]+
/
gm
Input 1
460 ls 461 cd .. 462 ls 463 cd ubuntu/ 464 ls 465 cd test/ 466 ls 467 cd .. 468 openvpn
Extraction
460 ls 461 cd .. 462 ls 463 cd ubuntu/ 464 ls 465 cd test/ 466 ls 467 cd .. 468 openvpn