Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Golang

`
(?m)^(?:\d\s+|Available:)?(\d+\.\d)(?:\(w\))?\s*(?:Used:)?(\d+\.\d)(?:\(w\))?\s+(?:Remaining:)?(\d+\.\d)(?:\(w\))?
`
gm

Description

Matching show power inline output on cat1000 & cat3560cx

Submitted by me - 3 years ago