title: RegEx - Time Validation ((h)h:mm)
body: <pre><code>/^\d{1,2}[:][0-5][0-9]$/
  </code></pre>
  
  <p>is what I have. this limits minutes to 00-59. It does not, however, limit hours to between 0 and 12. For similarity and uniformity I would like to do this with RegEx alone if possible.</p>
  
  <p>Further-more I would like the first digit to be optional. i.e. 09:30 accepted as well as 9:30. I played around with ranges, but something out of range is always acceptable.</p>