【正则表达式】匹配时间格式:hh:mm或h:m

^(0?[0-9]|1[0-9]|2[0-3]):(0?[0-9]|[1-5][0-9])$

posted @ 2017-03-15 13:22  xiongjiawei  阅读(2427)  评论(0编辑  收藏  举报