Regular Expressions 101

Community Patterns

0

Find ip, link

Golang
no description available
Submitted by anonymous - 6 years ago
0

recipes

Golang
no description available
Submitted by anonymous - 6 years ago
0

getfreessimg

Golang
no description available
Submitted by anonymous - 6 years ago

lsblk-output-regex

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 - 3 years ago