I am trying to validate whether a number with decimals in between is within the range of 0-255 which allows leading zeroes.
So far I have come up with the regex
^0*([1-9][\.\d]|250)*
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.
I thought [\.\d] would include all the periods, however it isn't the case.
What am I doing wrong here? Thanks