Regular Expressions 101

Sponsor⁠s

Community Library

Community Library Entry

1

Regular ExpressionOpen Workspace

`
(?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
Created·2021-08-18 18:00
Type·Match
Flavor·Golang

Trying to adapt this regex to support LVM.

Submitted by Anonymous
Open Workspace