Regular Expressions 101

Sponsors

Library entries

1
pcre

test

test
Submitted by test - 7 years ago
1
pcre

regex

no description available
Submitted by anonymous - 7 years ago
-3
pcre

asdfasfdasdfasdffasdf

asdfasdfadfasddfasdfadsaf
Submitted by afdsadsfasdfadsf - 7 years ago
0
pcre

File name

no description available
Submitted by anonymous - 7 years ago
1
pcre

guto

gutoregex
Submitted by guto - 7 years ago
2
pcre

Gentoo atom parsing

no description available
Submitted by selurvedu - 7 years ago
1
pcre

dropping first digit (2) andy advice?

\_\d(.+) for _2015041122
Submitted by jbt - 7 years ago
0
pcre

test

no description available
Submitted by anonymous - 7 years ago

How do I write a Regex to inspect Cisco Interfaces

Vote

3

Regular Expression
pcre

/
interface GigabitEthernet1\/(1[2-9]|[1-2][0-1]).*\n(.*\n)*.* description \*\* Unused Port \*\*.*\n(.*\n)*.* switchport access vlan 1002.*\n(.*\n)*.* switchport mode access.*\n(.*\n)*.* switchport port-security.*\n(.*\n)*.* switchport port-security mac-address sticky.*\n(.*\n)*.* shutdown.*\n(.*\n)*.* no cdp enable.*\n(.*\n)*.* spanning-tree portfast
/

Description

Loading markdown...
Submitted by Pirates - 7 years ago