Regular Expressions 101

Sponsors

Library entries

0
pcre2

IP address with port

Match ip address with port
Submitted by PARNKOT - 20 days ago
0
pcre2

Env Var

Regex to match Env Variable whole line
Submitted by anonymous - 20 days ago
0
python

MAC Address

Simple MAC address match/parsing expression
Submitted by cwichel - 21 days ago
0
python

TCN Match

Extract info about STP TCNs
Submitted by anonymous - 24 days ago
-1
pcre2

is

Hi it is me
Submitted by anonymous - 24 days ago
1
pcre2

Detect zoom meeting links

Find zoom links in text
Submitted by Artyom Ivanov - 24 days ago

VLAN_SUBINTERFACE

Vote

0

Regular Expression
pcre

/
interface\s([\S]+?)\.(\d+)\s+(description\s(?:[^a-zA-Z0-9]?([\S]+)[^a-zA-Z0-9]?))*(?:encapsulation\sdot1q\s(\d+)\s*)*(?:second-dot1q\s(\S+)\s+)*(?:rewrite\singress\stag\s(.+?)\s{2,})*(?:service-policy\sinput\s([\S]+)\s+)*(?:service-policy\soutput\s([\S]+))*.+?(?:\s*!|\s+service\sinstance)
/
g

Description

Loading markdown...
Submitted by anonymous - 5 years ago