Regular Expressions 101

Library entries

MAC Address

Vote

0

Regular Expression
javascript

/
^(?:[[:xdigit:]]{2}([-:]))(?:[[:xdigit:]]{2}\1){4}[[:xdigit:]]{2}$
/

Description

Loading markdown...
Submitted by Pilcrow - http://stackoverflow.com/questions/4260467/what-is-a-regular-expression-for-a-mac-address - 5 years ago