Regular Expressions 101

Community Patterns

1...34567...881

ipmitool sensor

1

Regular Expression
PCRE2 (PHP >=7.3)

/
^\s*(?<name>[^|]+?)\s*\|\s*(?<value>[^|]+?)\s*\|\s*(?<unit>[^|]+?)\s*\|\s*(?<status>[^|]+?)\s*\|\s*(?<type>[^|]+?)\s*\|\s*(?<state>[^|]+?)\s*\|\s*(?<lower_nonrec>[^|]+?)\s*\|\s*(?<lower_crit>[^|]+?)\s*\|\s*(?<lower_noncrit>[^|]+?)\s*\|\s*(?<upper_crit>[^|]+?)\s*$
/
gm

Description

Parse stdout from ipmitool sensor

Submitted by anonymous - 3 months ago (Last modified 3 months ago)