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>
时间: 2024-08-13 22:34:32