mac address validation regex

221

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
*/

Comments

Submit
0 Comments