想在一段代码中除去<script ...... /script>, <head>...</head>,<%.....%>等代码块
re.Pattern = "<head>([\s\S]*)<\/head>"
t = re.Replace(t,"")
re.Pattern = "<script([\s\S]*)<\/script>"
t = re.Replace(t,"")
用这种方式,结果大部分内容都被除掉了,如:
<script>....</script>
<b>hahahahhaa</b>
<script>....</script>
<br>
此代码经过处理后,只剩下<br>了……
但我希望只除去Js部分...
还有,不知道怎么过滤<%....%>代码块?
须为Vbs. 谢谢!