ASP 去除 HTML 標(biāo)記與空格的正則

關(guān)鍵詞:
日期:2011年7月10日 來源:佰科
function nohtml(str)
    dim re
    Set re = new RegExp
    re.IgnoreCase = true
    re.Global = True
    re.Pattern = "(\<.[^\<]*\>)"
    str = re.replace(str," ")
    re.Pattern = "(\<\/[^\<]*\>)"
    str = re.replace(str," ")
    str = replace(str," ","")
    str = replace(str," ","")
    nohtml = str
    set re = nothing
end function

ASP 去除 HTML 標(biāo)記與空格的正則

用 ASP 實現(xiàn)的去除內(nèi)容的 HTML 標(biāo)記和空格的實現(xiàn)代碼。

打印本頁〗 〖返回上一頁〗 〖關(guān)閉本頁
久久做品人人做人人综合_国产V综合V亚洲欧美大_久久九九机热国产精品_九九视频国产精品免费