Regular Expressions 101

Community Patterns

1...34567...901

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
^(\/dev\/(sdf|xvd)[a-p][0-9]{0,1})\s+([^\s]+)\s+([^\s]+)\s+([^\s]+)\s+([^\s]+)\%\s+([^\n]*)$
/
imsU

Description

Parses df -h

Submitted by Aaron Peterson - 9 years ago