项目中使用的正则

匹配标签中的内容

这里我要匹配:<h1 style="text-align: center;">导航模块</h1> 中的内容

所以使用的是:/<h1+.*?>([\s\S]*?)<\/h1*?>/ig