语法 1 re = /pattern/[flags] 语法 2 re = new RegExp("pattern",["flags"]) 参数flags可组合使用: g (全文查找出现的所有 pattern) i (忽略大小写) m (多行查找)