Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
Python

r"
(?=[^%]*(?:%ROUTING-ISIS-5-ADJCHANGE|%.*%ROUTING-ISIS-5-ADJCHANGE))^(?:[^:\n]*:){10}\s+\w+\s+\w+\s+(?P<ISIS_Remote_Host>[^ ]+)\s+\((?P<ISIS_Local_Interface>[^\)]+)\)\s\(L2\)\s(?P<ISIS_State>[\w]+),\s(?P<ISIS_Message>[\w+\s+]+)\s?$
"
mg

Description

no description available

Submitted by anonymous - 9 years ago