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>