Q:

number between 0 and 5 with decimals regex

^(\d+(\.\d{0,2})?|\.?\d{1,2})$
0
[+]?([0-4]*\.[0-9]+|[0-5])

Validates a number between 0 and 5 including decimals
0

New to Communities?

Join the community