title: RegEx to identify guid or a number
body: <p>I have regex for guid:</p>
  
  <blockquote>
    <p>/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i</p>
  </blockquote>
  
  <p>And regex to match a number:</p>
  
  <blockquote>
    <p>/^[0-9]*$</p>
  </blockquote>
  
  <p>But I need to match either a guid or a number. Is there a way to do it matching a single regex. Or should I check for guid and number separately.</p>