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"
^(.*ext[2-4]|.*xfs)(\s+)((([a-zA-Z\=\-]+)(?!noatime,nodireatime)).+)
"
gm
Input 1
# Not match /dev/mapper/VolGroup00-root / ext4 errors=remount-ro,noatime,nodiratime 0 1 /dev/mapper/VolGroup00-home /home ext4 defaults,noatime,nodiratime 0 2 LABEL=cloudimg-rootfs / ext4 defaults,noatime,nodiratime 0 0 # /etc/fstab: static file system information. # # Use 'blkid' to print the universally unique identifier for a # device; this may be used with UUID= as a more robust way to name devices # that works even if disks are added and removed. See fstab(5). # # <file system> <mount point> <type> <options> <dump> <pass> /dev/mapper/VolGroup00-root / ext4 errors=remount-ro 0 1 # /boot was on /dev/sda1 during installation UUID=72836e37-44d4-4612-90ef-0e545a0071a6 /boot ext4 defaults 0 2 /dev/mapper/VolGroup00-home /home ext4 defaults 0 2 /dev/mapper/VolGroup00-tmp /tmp ext4 defaults 0 2 /dev/mapper/VolGr
Extraction
# Not match /dev/mapper/VolGroup00-root / ext4 errors=remount-ro,noatime,nodiratime 0 1 /dev/mapper/VolGroup00-home /home ext4 defaults,noatime,nodiratime 0 2 LABEL=cloudimg-rootfs / ext4 defaults,noatime,nodiratime 0 0 # /etc/fstab: static file system information. # # Use 'blkid' to print the universally unique identifier for a # device; this may be used with UUID= as a more robust way to name devices # that works even if disks are added and removed. See fstab(5). # # <file system> <mount point> <type> <options> <dump> <pass> /dev/mapper/VolGroup00-root / ext4 errors=remount-ro 0 1 # /boot was on /dev/sda1 during installation UUID=72836e37-44d4-4612-90ef-0e545a0071a6 /boot ext4 defaults 0 2 /dev/mapper/VolGroup00-home /home ext4 defaults 0 2 /dev/mapper/VolGroup00-tmp /tmp ext4 defaults 0 2 /dev/mapper/VolGr