导读:asp教程提取文章内容描述(去除图片,html连接) body script type=text/vbscript !-- dim s,k s = aaimg alt=\caaab alt=\aaa src=images/index4_17.gifbaaab k= aaa set re = new regexp re.pattern = k(?![^]* ) re.global = true re.ignorecase = true ale...
asp教程提取文章内容描述(去除图片,html连接)
<body>
<script type="text/vbscript">
<!--
dim s,k
s = "aa<img alt="\"caaab"" alt="\"aaa"" src=""images/index4_17.gif"">baaab"
k= "aaa"
set re = new regexp
re.pattern = k&"(?![^""]*"" )"
re.global = true
re.ignorecase = true
alert(re.replace(s,"<a href=""kkk"">dfdf</a>"))
//-->
</script>
</body>