Regular Expressions 101

Library entries

lsblk-output-regex

Vote

1

Regular Expression
golang

`
(?m)^NAME="(?P<name>(?P<disk>[a-z]+)(?P<partition>\d*))"\sFSTYPE="(?P<fstype>\w*)"\sMOUNTPOINT="(?P<mountpoint>[\w\[\]/]*)"\sSIZE="(?P<size>\d*)"\sTYPE="(?P<type>\w+)"$
`
gm

Description

Loading markdown...
Submitted by anonymous - 4 months ago