I'm searching for a regex pattern that can identify numbers within the range of 0.5 to 24, excluding cases like 0,5 or 22,5. The current pattern I'm using is:
/^(([0-9]|1[0-9]|2[0-3])([^,])(\.(0|5)))$/
Despite having excluded the comma ,
, it still manages to capture cases like 22,5. Any suggestions or feedback would be greatly appreciated. Thank you!