Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE2 (PHP >=7.3)

/
^ip dhcp pool(\n|.)*?(?=!)
/
gm

Description

Cisco config find each DHCP Pool Either full subnet pool or a static device entry pool

Submitted by Justin Cooksey - 7 months ago