JQuery / JavaScript MAC Address Validation
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/4260467/what-is-a-regular-expression-for-a-mac-address">What is a regular expression for a MAC Address?</a>  </p>
</blockquote>



<p>I would like to validate a string to ensure that it is a valid MAC Address.</p>

<p>Any ideas in Jquery or Javascript?</p>

<p>I have the following:</p>

<pre><code>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));
</code></pre>

<p>But its not all that accurate.</p>

<p>Ie. My tissue box is a valid MAC Address?!?</p>

<p>Thanks!</p>
