求一时间正则表达式~~~~~~~~~~~~~~马上揭帖~~
24小时制,只要小时和分钟,
例:
22:22
10:10
9:01
------解决方案--------------------^([0-1]\\d|2[0-3]):[0-5]\\d$
------解决方案--------------------re=/^([0-9]|1[0-9]|2[1-3])\:([0-5][0-9])$/
------解决方案--------------------var a=/^(1?[0-9]|2[0-3]):[0-5][0-9]$/
alert(a.test( "22:22 "))
alert(a.test( "9:71 "))
alert(a.test( "24:01 "))