Regular Expressions 101

Community Patterns

Mac-address filtering

1

Regular Expression
PCRE (PHP <7.3)

/
(^0{2}-2{2}(-([0-9a-fA-F]){2}){4}$)
/

Description

Trying to capture a mac-address structure

Submitted by R. van den Hoek - 9 years ago