title: Regex to match 8 or 12 or 32 hex number
body: <p>I am trying to write a regex for a case-insensitive hex number that should match either 8 or 12 or 32 in length.</p>
  
  <pre><code>The regex I have so far is:
  
  /^[0-9A-F]{8}|[0-9A-F]{12}|[0-9A-F]{32}$/i
  
  The pattern I am trying to test against is:
  96AFC4ADA8C44A36B0CB1EC28531C3BC
  
  or
  
  870b72a9a020
  
  or
  
  569ac61e
  </code></pre>
  
  <p>But this doesn't seem to be matching the criteria.</p>
  
  <p>Can you help?</p>
  
  <p>Thanks,</p>