I have a problem in validating Textbox in which I have to enter time. in that only the symbol ":" is allowed, text also should not allow.
how to do this..
and
I am following the pattern /^\\d{1,2}:\\d{2}$/
if anyone help me would be appreciated.
thanx in advance.
尝试使用以下正则表达式验证HH:MM时间格式
^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$
尝试以下模式:
/^\d{2,}:\d{2}:\d{2}$/
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.