Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
GigabitEthernet1\/1\/1(?:(?!interface GigabitEthernet)[\s\S])*(vlan.*40(?:9[12]|[6-8][0-9]|5[2-9]))
/
gm
Input 1
1
New
interface GigabitEthernet1/1/1 description link-to-someswitch-Gi2/0/1 switchport access vlan 3109 switchport trunk allowed vlan 300,301,350,358,800,3109 switchport trunk encapsulation dot1q switchport trunk native vlan 3109 switchport mode dynamic desirable srr-queue bandwidth share 40 20 20 20 srr-queue bandwidth shape 10 0 0 0 priority-queue out no snmp trap link-status mls qos trust dscp spanning-tree portfast disable ! interface GigabitEthernet1/1/2 description link-to-someswitch2-Gi2/0/1 switchport access vlan 3609 switchport trunk allowed vlan 300,301,350,358,800,3609,4088 switchport trunk encapsulation dot1q switchport trunk native vlan 3109 switchport mode dynamic desirable srr-queue bandwidth share 40 20 20 20 srr-queue bandwidth shape 10 0 0 0 priority-queue out no snmp trap link-status mls qos trust dscp spanning-tree portfast disable interface GigabitEthernet1/1/1 description link-to-someswitch-Gi2/0/1 switchport access vlan 3109 switchport trunk allowed vlan 300,301,350,358,800,4088 switchport trunk encapsulation dot1q switchport trunk native vlan 3109 switchport mode dynamic desirable srr-queue bandwidth share 40 20 20 20 srr-queue bandwidth shape 10 0 0 0 priority-queue out no snmp trap link-status mls qos trust dscp spanning-tree portfast disable
Extraction