Write a regular expression to match a MAC address. Go.
Take 1: ([0-9a-f]{2}:){5}[0-9a-f]{2}
Matches: 00:19:db:d0:8e:3c
Take 2: ([0-9a-fA-F]{1,2}[:-]){5}[0-9a-fA-F]{1,2}
Matches: 00-c-DB-a0-8E-f
Stsimb's blog
Write a regular expression to match a MAC address. Go.
Take 1: ([0-9a-f]{2}:){5}[0-9a-f]{2}
Matches: 00:19:db:d0:8e:3c
Take 2: ([0-9a-fA-F]{1,2}[:-]){5}[0-9a-fA-F]{1,2}
Matches: 00-c-DB-a0-8E-f