正则表达式
var str = "(08:30-10:00)"; var patt = /^[(][0-9]{2}:[0-9]{2}-[0-9]{2}:[0-9]{2}[)]$/; alert(patt.test(str));
原文地址:https://www.cnblogs.com/kikyoqiang/p/11163833.html
时间: 2024-10-04 04:58:13
正则表达式
var str = "(08:30-10:00)"; var patt = /^[(][0-9]{2}:[0-9]{2}-[0-9]{2}:[0-9]{2}[)]$/; alert(patt.test(str));
原文地址:https://www.cnblogs.com/kikyoqiang/p/11163833.html