Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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
*/
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #mac #address #validation #regex
ADD COMMENT
Topic
Name
3+9 =