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
r"
^(/dev/[\S]+|.*zroot\S*?) on (/[\S]*) (?=(?:type)[\s]+([\S]+)|\(([^,]*))
"
g
Input 1
/dev/mapper/vg00-lv_root on / type ext4 (rw,errors=remount-ro)
Substitution
/dev/mapper/vg00-lv_root on / type ext4 (rw,errors=remount-ro)