前端使用正则表达式进行校验的方法总结大全-牛翰网

前端使用正则表达式进行校验的方法总结大全

目录 一、定义 二、匹配规则 三、匹配方法 str.match(regexp) str.matchAll(regexp) str.search(regexp) str.replace(regexp) str.split(regexp) regexp.exec(str) regexp.test(str) 附:断言例...