title: How can I validate the range 1-99 using a regex?
body: <p>I need to validate some user input, to ensure a number entered is in the range of 1-99 inclusive. These must be whole (Integer) values</p>
  
  <p>Preceeding 0 is permitted, but optional</p>
  
  <p>Valid values</p>
  
  <ol>
  <li>1</li>
  <li>01</li>
  <li>10</li>
  <li>99</li>
  <li>09</li>
  </ol>
  
  <p>Invalid values</p>
  
  <ol>
  <li>0</li>
  <li>007</li>
  <li>100</li>
  <li>10.5</li>
  <li>010</li>
  </ol>
  
  <p>So far I have the following regex that I've worked out : <code>^0?([1-9][0-9])$</code></p>
  
  <p>This allows an optional 0 at the beginning, but isn't 100% correct as <code>1</code> is not deemed as valid</p>
  
  <p>Any improvements/suggestions?</p>