Regular Expressions 101

Community Patterns

Community Library Entry

5

Regular Expression
ECMAScript (JavaScript)

/
((?:[a-zA-Z0-9]{2}[:-]){5}[a-zA-Z0-9]{2})
/

Description

a mac address separated by dashes or colons.

Submitted by anonymous - 9 years ago