Cisco Mac Address Regex

Reference post…..I needed to match a cisco format mac address, not the best, but it works…

String: 0000.0c07.ac01

Matching regex: ([0-9A-Fa-f]){4}\.([0-9A-Fa-f]){4}\.([0-9A-Fa-f]){4}

String: 00:00:0c:07:ac:01

Matching regex: ([0-9A-Fa-f]){2}\:([0-9A-Fa-f]){2}\:([0-9A-Fa-f]){2}\:([0-9A-Fa-f]){2}\:([0-9A-Fa-f]){2}\:([0-9A-Fa-f]){2}

Continue reading » · Written on: 01-09-09 · 1 Comment »

One Response to “Cisco Mac Address Regex”

  1. Internets of Interest: 10th Jan | My Etherealmind wrote:

    [...] http://www.copyandwaste.com » Cisco Mac Address Regex – Regex to match a Cisco MAC address (0000.0c). [...]

    January 10th, 2009 at 4:10 pm

Leave a Reply