title: restrict number with decimals in between
body: <p>I am trying to validate whether a number with decimals in between is within the range of 0-255 which allows leading zeroes.</p>
  
  <p>So far I have come up with the regex</p>
  
  <pre><code>^0*([1-9][\.\d]|250)*
  </code></pre>
  
  <p>and the example that I have tried it on is 63.32.32.250 however it only grabs the 63, and not the rest of the string.</p>
  
  <p>I thought [\.\d] would include all the periods, however it isn't the case.</p>
  
  <p>What am I doing wrong here? Thanks</p>