Regular Expressions 101

Community Patterns

Cisco DHCP Pools

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 - 11 days ago