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]?
If you want the 0 to be optional, move the ? to just after the [0-5] instead.
?
[0-5]
[0-5]?[0-9] should do it.
[0-5]?[0-9]