http://qs321.pair.com?node_id=83405

marius has asked for the wisdom of the Perl Monks concerning the following question:

Monks,
Does anyone have a regex that will successfully match a MAC address that is better than the following?

I'd like to be able to match the 00:00:00:00:00:00 or the 00-00-00-00-00-00 notation. Thanks!

[0-9a-f][0-9a-f][:-][0-9a-f][0-9a-f][:-][0-9a-f][0-9a-f][:-][0-9a-f][0 +-9a-f][:-][0-9a-f][0-9a-f][:-][0-9a-f][0-9a-f]


-marius