what is the regular expression for HH:MM:SS
HH is hours , but not limited for day or clock it just can be any number from 0 to any integer
MM is minutes maximum is 59 and begin from 00
SS is Seconds maximum is 59 and begin from 00
([0-9]+):([0-5][0-9]):([0-5][0-9])
if the maximum is 59
(sensible). If you want 60
to also be possible,
([0-9]+):([0-5][0-9]|60):([0-5][0-9]|60)
EDIT: If you want the leading zero to be optional, the one in the comment works. This one is better tho:
([0-9]+):([0-5]?[0-9]):([0-5]?[0-9])