title: Regular Expression to accept only positive number and decimals (only end with .5 .0 or integer accepted)
body: <p>I need a regular expression in JavaScript that will accept only positive numbers and decimals ending with .5 or .0 .</p>
  
  <pre><code>(^\d*\.?\d*[1-9]+\d*$)|(^[1-9]+\d*\.\d*$)
  </code></pre>
  
  <p>This is what I have but I don't know how to change it to reject 0 and 0.0, and reject those ending with .1 .2 .3 .4 .6 .7 .8 .9</p>
  
  <pre><code>Accept:
  0.5
  1.0
  1.5
  2.0
  2.5
  3.0
  1
  2
  3
  4
  </code></pre>
  
  <p>But</p>
  
  <pre><code>Reject:
  -1.0
  -0.5
  -0.0
  -0.1
  -0.7
  0
  0.0
  0.1
  0.9
  0.4
  1.3
  1.11
  1.51
  2.01
  </code></pre>