GigabitEthernet1the literal text GigabitEthernet1 (case sensitive) \/the literal / (4710 / 578 / 2F16)
1the literal 1 (4910 / 618 / 3116)
\/the literal / (4710 / 578 / 2F16)
1the literal 1 (4910 / 618 / 3116)
Non-Capturing Group(?:(?!interface GigabitEthernet)[\s\S])* *repeats the group contents below any number of times:
Negative Lookahead(?!interface GigabitEthernet) interface GigabitEthernetthe literal text interface GigabitEthernet (case sensitive) \sany whitespace character
\Sany non-whitespace character
Group 1(vlan.*40(?:9[12]|[6-8][0-9]|5[2-9])) vlanthe literal text vlan (case sensitive) .*any character (except for line terminators), repeated any number of times
Non-Capturing Group(?:9[12]|[6-8][0-9]|5[2-9]) 9the literal 9 (5710 / 718 / 3916)
1the literal 1 (4910 / 618 / 3116)
2the literal 2 (5010 / 628 / 3216)
2nd Alternative[6-8][0-9] 6-8one character from 6 (5410) to 8 (5610)
0-9one character from 0 (4810) to 9 (5710)
5the literal 5 (5310 / 658 / 3516)
2-9one character from 2 (5010) to 9 (5710)
g modifier: global. Finds all matches instead of stopping after the first
m modifier: multiline. Causes ^ and $ to match the start and end of each line, not only the start and end of the string