Regular Expressions 101

Community Patterns

Cisco FastEthernet Ports 1-12

1

Regular Expression
PCRE (PHP <7.3)

/
^fa0\/(1[0-2]|[1-9])$
/

Description

This regex will grab all Cisco-style FastEthernet ports from 1 to 12

Submitted by @LookLittleJohn - 9 years ago