\d 数字、\w 单词字符、\s 空白、. 任意字符。* 零次或多次、+ 一次或多次、? 零或一次、{n,m} 指定范围;量词后加 ? 转为懒惰匹配。(…) 捕获、(?:…) 非捕获、(?=…) 前瞻、(?<=…) 后顾。\. 匹配句点。A quick-reference cheat sheet for regular expression syntax and flags, viewable in your browser.
正则表达式速查。专为开发者打造的在线工具,纯前端运行,代码不离开浏览器。