Mac address is a unique identifier assigned to network interface controllers like WiFi routers, Ethernet controllers, etc. It has a format of six groups of 2 hexadecimal digits separated by dash or colon (e.g. 00:00:5e:00:53:af). Mac address regular expression can be used to validate that a certain string contains mac address or extract mac address from a given string.
Below is a simple mac address regex that supports dashes or colons as separators:
True
False
Enter a text in the input above to see the result
Example code in C#:
True
False
Enter a text in the input above to see the result
True
False
Enter a text in the input above to see the result
Discover UI Bakery – an intuitive visual internal tools builder.