修饰词
g global全文搜索 不添加的话 只匹配第一个
/\bis\b/g \b单词边界
i ignore case 忽略大小写 默认不加大小写敏感
/\bis/b\gi 全文搜索并且大小写不敏感
m multiple lines 多行搜索
/\bis\b/gim 全文搜索并且大小写不敏感并且多行搜索
正则语法


g global全文搜索 不添加的话 只匹配第一个
/\bis\b/g \b单词边界
i ignore case 忽略大小写 默认不加大小写敏感
/\bis/b\gi 全文搜索并且大小写不敏感
m multiple lines 多行搜索
/\bis\b/gim 全文搜索并且大小写不敏感并且多行搜索
本文标题:正则表达式
本文链接:https://www.haomeiwen.com/subject/adatwctx.html
网友评论