I need to write a regex, which will give in format 00:00 (hour:minutes) in 24 hours format.
With no spaces is allowed.
- First part
'00'will be numbers(hours) and including / between00to23. - Second part
':'will be always colon there. - Third part
'00'will be numbers(minutes) and including / between00to59.
I tried with /\s/g.test(stringToBeChecked). This will return if spaces are present in between characters.
Please give me wright solution as I am not familar with regex.
This should work: