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