Regular Expressions 101

Sponsors

Library entries

1
golang

lsblk-output-regex

Trying to adapt this regex to support LVM.
Submitted by anonymous - a year ago
1
golang

SQL comments Big Query

SQL comments on Big Query
Submitted by anonymous - a year ago
1
golang

1

11
Submitted by anonymous - 3 months ago
1
golang

Flexible box

no description available
Submitted by anonymous - 2 years ago
1
golang

Lxx Wurzel

no description available
Submitted by anonymous - 2 years ago

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 - a year ago