ASP replace 问题! 请问下面那段代码具体意思!
Setre=newRegExpre.IgnoreCase=truere.Global=Truere.Pattern="<cardtitle=""[\s\S]+?"">"b...
Set re=new RegExp
re.IgnoreCase =true
re.Global=True
re.Pattern = "<card title=""[\s\S]+?"">"
body = re.Replace(body, "")
re.Pattern = "<go method=""post"""
body = re.Replace(body, "<go method=""get""")
re.Pattern = "<card title=[\s\S]+?<p>"
body = re.Replace(body, "<p>")
body = replace(body,"<p>","")
body = replace(body,"</p>","<br/>")
body = replace(body,"[华北]","<br/>[华北]")
re.Pattern = ""
body = re.Replace(body, "")
body = replace(body,"/1/weather/","weather.asp?" & myids & "i=")
set re=Nothing 展开
re.IgnoreCase =true
re.Global=True
re.Pattern = "<card title=""[\s\S]+?"">"
body = re.Replace(body, "")
re.Pattern = "<go method=""post"""
body = re.Replace(body, "<go method=""get""")
re.Pattern = "<card title=[\s\S]+?<p>"
body = re.Replace(body, "<p>")
body = replace(body,"<p>","")
body = replace(body,"</p>","<br/>")
body = replace(body,"[华北]","<br/>[华北]")
re.Pattern = ""
body = re.Replace(body, "")
body = replace(body,"/1/weather/","weather.asp?" & myids & "i=")
set re=Nothing 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询