title: MAC address regex for JavaScript
body: <p>I have get Javascript regex from this <a href="https://stackoverflow.com/questions/4260467/what-is-a-regular-expression-for-a-mac-address">Regex</a> link. But its match also mix pattern of MAC address </p>
  
  <pre><code>/^([0-9a-f]{1,2}[\.:-]){5}([0-9a-f]{1,2})$/i
  </code></pre>
  
  <p>For e.g </p>
  
  <pre><code>AA-BB.CC.DD.EE.FF  
  </code></pre>
  
  <p>as per above regex its true but i want to match same quantifier in whole mac address. As per my requirement above mac address is wrong. </p>
  
  <p>So would please help me how to match same quantifier. i.e for dot(.) find 5 instead of mix pattern same for dash(-) and colon </p>