How do I write a Regex to inspect Cisco Interfaces
Published on Tue Mar 01 2022
I am asking for help in writing a regular expression to shorten this expression. I need the string below to search every interface within the range of 1 -24 to validate the configuration. If one interface does not have the required configuration then the expression fails.
interface GigabitEthernet1/***1 thru 24***.\n(.\n). description ** Unused Port **.\n(.\n). switchport access vlan 333