I need to validate time field in the textbox. I used this regular expression.
var reg_exp = /^([0-9\:]*)$/;
But it allows add : any place in the text box. How to make it to add : only in the third place of the text.
Ex: 11*:*34
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.
Use
instead which matches two digits, then a colon and another two digits.