Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE2 (PHP >=7.3)

/
^(([[:xdigit:]]){2}[:\-\.]){5}([[:xdigit:]]){2}$
/
gm

Description

MAC address supporting various formats

Submitted by anonymous - 2 years ago