I want to validate sting time format in EXACTLY hh:mm:ss
String.
I mean by EXACTLY that
Each of hours / minutes / seconds MUST be 2 digits
Also
Accept only logical values like
- hours [ from 00 to 23 ]
- minutes [ from 00 to 59 ]
- seconds [ from 00 to 59 ]
When i checked Regex pattern for HH:MM:SS time string
The answer accept hh:mm:ss
string but also accepts cases like 2:3:24
Thanks in advance