title: Regular expression for maximum value
body: <p>I have come up with the following regexp to accept values with a .25 interval or in quarter format, like 1.25, 10.75, 11.50, 12, 13.</p>
  <p><em>Regular Expression</em></p>
  <pre class="lang-none prettyprint-override"><code>^\d+((\.0+)*|(\.250*)|(\.50*)|(\.750*))$
  </code></pre>
  <blockquote>
  <p>Example</p>
  <p><strong>Accepted Values</strong> = 0, 0.25, 0.50, 0.75, 3 , 1.25 , 1.50, 1.75, 5 , 10</p>
  <p><strong>Not Accepted Values</strong> = 0.15, 0.20, 0.26, 0.30, 1.30, 1.55</p>
  </blockquote>
  <p>I have the following questions;</p>
  <ol>
  <li><p>How can I make it not accept .25, but accept 0.25?</p>
  </li>
  <li><p>How can I limit the value to the maximum number? I want it to accept up to 15.5.</p>
  </li>
  </ol>