<noframes id="3fdf1">

      <pre id="3fdf1"></pre>
        <ruby id="3fdf1"></ruby>
        <track id="3fdf1"><strike id="3fdf1"><rp id="3fdf1"></rp></strike></track>
        <pre id="3fdf1"></pre>
        <pre id="3fdf1"><ruby id="3fdf1"></ruby></pre>

        <ruby id="3fdf1"><strike id="3fdf1"><var id="3fdf1"></var></strike></ruby>

        建站知識

        Welcome to Beijing RuiHeng TianLong Technology Co., Ltd.

        asp獲取a連接,獲取代碼中的鏈接地址,asp截取文本連接地址。

        時間:  來源:網站建設公司  作者:網站制作公司  點擊量:
        asp獲取a連接,獲取代碼中的鏈接地址,asp截取文本連接地址。

        VBScript code

        '==================================================

        '*函數名 : GetHrefFromContent

        '*參數說明 : html asp截取文本連接地址。

        '*功能簡介 : 獲取代碼中的鏈接地址

        '==================================================

        function GetHrefFromContent(html)

        Dim Re, match, matchs,strContent,aryNum,aryContent,strUrl

        strContent = ""

        set Re = new RegExp

        re.IgnoreCase =True

        re.Global = True

        re.Pattern = "<a.*?href=(?:""(.*?)""|(.*?))(?:(?: .*?>)|>)(.*?)</a>"

        Set matchs = re.Execute(html)

        for each match in matchs

        'match.SubMatches(0) 基本 0 可改成數組里的其它成員

        strContent = strContent + (match.SubMatches(0)) & "|$|"

        next

        set matchs = nothing

        aryContent = split(strContent,"|$|")

        for aryNum = LBound(aryContent) to UBound(aryContent)

        strUrl = aryContent(aryNum) '連接地址

        next

        end function


        asp網站建設的截取連接地址功能,你學會了嗎?


         

        本文TAG標簽: asp網站制作 asp網站建設
        返回關閉本頁
        上一篇:北京網站建設技術答疑怎么禁止查看網頁源文件代碼和網頁防復制代碼    下一篇:在打開網站時顯示的如404,500等錯誤提示是什么意思,網站制作中HTTP常見狀態代碼
        推薦閱讀

        Copyright © 2010-2021 北京瑞恒天龍科技有限公司  All Rights Reserved  |  北京網站建設知名服務商  |  北京網站制作 | 京ICP備11004170號-1   京公網安備110107000463號
        地址:北京市海淀區永定路長銀大廈B座  非工作時間:15810379666  服務熱線:010-89941606 座機:010-89941606 轉801/802/803/804  版權所有 盜版必究!

        在線咨詢
        關閉
        電話咨詢
        網站制作電話
        010-89941606