Regular Expressions 101

Library entries

Parse CISCO NEXUS 9xxx/5xxxx show inventory output w/o | json modifier

Vote

1

Regular Expression
python

"
(?:\s*?NAME\s*?:\s*?\"?)([0-9A-Za-z- ,]+)(?:\"?\s*?,\s*?)(?:DESCR\s*?:\s*\"?)([0-9A-Za-z- ,/+:]+)(?:\"?\s*?PID\s*?:\s*?)([0-9A-Z-]+)(?:\s*?,\s*?VID\s*?:\s*?)([0-9A-Z/]+)(?:\s*?,\s*?SN\s*?:\s*?)([0-9A-Z/]+)
"
gm

Description

Loading markdown...
Submitted by skalef - 2 months ago