I want to check if a field is a valid time value (just seconds). So I want to accept the numbers from 0 to 59. I came out with this:
[0-5][0-9]?
This should be sufficient: [0-5]?\d
[0-5]?\d
However if you want to enforce two digits (ie. 01, 02...) you should just use [0-5]\d
01
02
[0-5]\d