当前位置:首页>>网络编程>>ASP教程>>正文

ASP实现网页文章摘要功能实例

文章出处:设计前沿收集 作者:未知 发布时间:2007-05-28 收藏到QQ书签

Function RemoveHTML(strHTML)
Dim objRegExp, Match, Matches
Set objRegExp = New Regexp

objRegExp.IgnoreCase = True
objRegExp.Global = True

objRegExp.Pattern = "<.+?>"

Set Matches = objRegExp.Execute(strHTML)

For Each Match in Matches
strHtml=Replace(strHTML,Match.value,"")
Next
RemoveHTML=strHTML
Set objRegExp = Nothing
End Function


Google