Community Patterns

Community Library Entry

0

Regular Expression
Created·2021-10-29 21:02
Flavor·Python

r"
(\w*)(\d(?:\/\d)*)(?:\.)?(\d*)?$
"
gm
Open regex in editor

Description

This regular expression will match on interface names and return grouped data including name, location, sub-interface.

Submitted by Neis