title: RegEx Numeric Check in Range?
body: <p>I'm new to StackOverflow, so please let me know if there is a better way to ask the following question.</p>
  
  <p>I need to create a regular expression that detects whether a field in the database is numeric, and if it is numeric does it fall within a valid range (i.e. 1-50).  I've tried <code>[1-50]</code>, which works except for the instances where a single digit number is preceded by a 0 (i.e. 06).  06 should still be considered a valid number, since I can later convert that to a number.  </p>
  
  <p>I really appreciate your help!  I'm trying to learn more about regular expressions, and have been learning all I can from: <a href="http://www.regular-expressions.info/" rel="noreferrer">www.regular-expressions.info</a>.  If you guys have recommendations of other sites to bone up on this stuff I would appreciate it!</p>