Regular Expressions 101

cisco cat3650cx & cat1000 'show power inline'

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