随笔分类 - 正则表达式的一些记录
摘要:https://www.cnblogs.com/youyouyunduo/p/11706688.html 一些匹配规则 1字面量字符和元字符 1.1(/./)点字符匹配 点字符匹配除回车(\r)、换行(\n)、行分隔符(\u2028)、段分隔符(\u2029)以外的所有字符。 1.2(/|/)or字
阅读全文
摘要:https://wangdoc.com/javascript/stdlib/regexp.html reg reg的方法exec、test exec返回匹配到的字符 test返回ture或者false string string的方法match,search,replace,split match返
阅读全文