Answers for "regex for mac address"

2

mac address validation regex

/^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$/

/* 
	works for:
	3D-F2-C9-A6-B3-4F
	3D:F2:C9:A6:B3:4F
*/
Posted by: Guest on August-17-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language