I want to validate my timerlabel which is on the format hh:mm:ss and so far i have done it by this:
if re.match("^[0-9]{2}:[0-9]{2}:[0-9]{2}$", self._lineeditDuration.text()):
The problem with the above line is that the user can enter 00:99:99, which does not make sense that the minutes and seconds can be higher than 59.
Is there a way to validate each of the numbers that represents minutes, so the first number can be 0-5 and the second number can be 0-9. The same goes for seconds.