Yaya
Yaya

Reputation: 1

What is a regular expression for the format of these MAC Address?

Format as below:

I'm working on the visual studio validation check, I have tons of mac address and I'm trying to find a regular expression fits all these mac address as the format shown.

Upvotes: 0

Views: 262

Answers (1)

Sagar Thakore
Sagar Thakore

Reputation: 21

Here is the regex:

^([0-9a-f]{4}\.[0-9a-f]{4}\.[0-9a-f]{4})$

For more, checkout this link:

Regular Expression Library

Upvotes: 2

Related Questions