JS 经常使用正则表达式备忘录

JS 经常使用正则表达式备忘录 匹配正则 使用 .test() 方法html let testString = "My test string";let testRegex = /string/;testRegex.test(testString);   匹配多个模式 使用操做符号 |git const regex = /yes|no|maybe/;   忽略大小写 使用i标志表示忽略大小写
相关文章
相关标签/搜索