title: Regular expression for double number range validation
body: <p>I look for a regular expression to support double number with just one fraction part which ranges between 0.1 to 999.9</p>
  
  <p>It means following values are not allowed:</p>
  
  <pre><code>0
  0.0 // less than lower bound
  0.19 // fraction part is 2 digits, right '9' is extra
  94.11 // fraction part is 2 digits, right '1' is extra
  999.90 // fraction part is 2 digits, '0' is extra
  9.0 // should be 9 or 9.1, 9.0 is wrong
  1000 // is higher than upper bound
  </code></pre>
  
  <p>allowed ones:</p>
  
  <pre><code>1.1
  55.5
  999.9
  </code></pre>
  
  <p>My regular expression is:</p>
  
  <pre><code>(^(\.[1-9])?$|(^[1-9][0-9]{0,2}?(\.[1-9])?$))$
  </code></pre>
  
  <p>Which doesn't support <code>0.1</code> to <code>0.9</code> and extra zeros like <code>99.000</code> and <code>99.0</code></p>
  
  <p>Test steps:
  In your browser console:</p>
  
  <pre><code>var reg = new RegExp(/(^(\.[1-9])?$|(^[1-9][0-9]{0,2}?(\.[1-9])?$))$/);
  reg.test(12);
  </code></pre>
  
  <p>Any help appriciated</p>