I need a regular expression to validate time.
Valid values would be from 0:00 to 23:59.
When the time is less than 10:00 it should also support one character numbers.
These are valid values:
9:0009:00
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Try this regular expression:
Or to be more distinct: