Regular Expressions 101

Community Patterns

Cisco ASA - match any to host

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