正则表达式过滤HTML标签
有网页源代码如下,
我的正则表达式是这样的,
"<DIV class=percent-wrap><DIV class=attr><H2.*"
reg.test(网页源码),结果就是为false, 一直没有搞懂,
<DIV class=percent-wrap>
<DIV class=attr>
<H2 class=new-title><A id=lsubject_712071517 class=qrPTitle title="2013 hot medical tape" onclick="onProductClick('712071517');" href="http://www.alibaba.com/product-gs/712071517/2013_hot_medical_tape.html" target=_blank dot="area=ml2&type=pttl&d_pid=712071517&value=">2013 hot <STRONG>medical</STRONG> <STRONG>tape</STRONG></A> </H2>
<DIV class=busi-attr>