示例:
<div style="-ms-layout-grid: both loose 15.6pt none; text-align: center;"></div>
<div style="-ms-layout-grid: both loose 15.6pt none; text-align: center;"></div>
<div style="-ms-layout-grid: both loose 15.6pt none; text-align: center;"></div><div style="-ms-layout-grid: both loose 15.6pt none; text-align: center;"></div><div style="-ms-layout-grid: both loose 15.6pt none; text-align: center;"></div><div style="-ms-layout-grid: both loose 15.6pt none; text-align: center;"></div>
<h1 style="-ms-layout-grid: both loose 15.6pt none; text-align: center;"></h1>
需要匹配出来h1标签
ps:在实际开发中使用h1直接匹配太繁琐
so:
使用?!进行反选
<(?!div).?text-align: center.?/(?!div).*?>
网友评论