Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
\S*\s+([\w\d]*)\s+([\w\d-+]+)\s+([\w\d-+]*)\s*
/
g

Description

Expression for linux sysfs wwid parse (/sys/block/sda/device/wwid)

Submitted by Edgar Cherkasov - 7 years ago