Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
access-list\s(?P<interface>[^\s]+)\s(extended)\s(?P<allowed>permit|deny)\s(?P<protocol>ip|tcp|udp|any)\s(?P<source>any[46]?)\s(?P<dest>host\s[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3})\seq\s(?P<services>[^\s]+)?
/
gm

Description

no description available

Submitted by anonymous - 4 years ago