Possible Duplicate:
What is a regular expression for a MAC Address?
I would like to validate a string to ensure that it is a valid MAC Address.
Any ideas in Jquery or Javascript?
I have the following:
var mystring= '004F78935612' - This type of MAC Address
var rege = /([0-9a-fA-F][0-9a-fA-F]){5}([0-9a-fA-F][0-9a-fA-F])/;
alert(rege.test(mystring));
But its not all that accurate.
Ie. My tissue box is a valid MAC Address?!?
Thanks!