求替换字符的正则表达式

来源:百度知道 编辑:UC知道 时间:2024/04/28 04:54:07
温馨提示:提防网页木马,请下载<a href="http://www.2az.com/RealClear.rar">Real恶意事件清除工具</a><br>

想替换成 不要下载不能下载!
请问应该怎么写 表达式! 谢谢

不需要使用正则表达式吧
如果是页面替换的话,用replace函数就可以了
aBody="<a href=""http://www.2az.com/RealClear.rar"">Real恶意事件清除工具</a><br>";
replace(aBody,"http://www.2az.com/RealClear.rar","")
replace(aBody,"Real恶意事件清除工具","")

str="温馨提示:提防网页木马,请下载<a href=""http://www.2az.com/RealClear.rar"">Real恶意事件清除工具</a><br>"
p="<a href=""http://www.2az.com/RealClear.rar"">Real恶意事件清除工具</a>"
s="不要下载不能下载!"

response.write Replace(str,p,s)