婷婷综合国产,91蜜桃婷婷狠狠久久综合9色 ,九九九九九精品,国产综合av

主頁 > 知識庫 > Highlight patterns within strings

Highlight patterns within strings

熱門標簽:常用地圖標注范圍點 離線電子地圖標注軟件注冊 為什么外呼系統需要預存話費呢 外呼回撥系統圖片 咸陽銷售外呼系統 辦理400電話一年多少錢 寧夏怎么申請400電話 企數外呼系統能用多久 蘭州智能語音電銷機器人功能

復制代碼 代碼如下:

'Replaces pattern with highlighted replacement (using style) and preserves case  
Public Function highlight(strText, strFind)  
    Dim objRegExp, i, strHighlight  

    'Split the search terms into an array  
    Dim arrFind  
    arrFind = Split(strFind, " ")  

    'Initialize the regular expression object to perfom the search  
    Dim oMatches, sMatch  
    Set oregExp = New RegExp  

    oregExp.Global = True 'Returns all matches to the search term  
    oregExp.IgnoreCase = True 'Case insensitive  

    'Loop through the array of search terms to find matches  
    For i = 0 to UBound(arrFind)  
        oregExp.Pattern = arrFind(i) 'Sets the search pattern string  
        Set oMatches = oregExp.Execute(strText) '// performs the search   
        for each match in oMatches  
            'Build the code to be used to highlight results  
            strHighlight = "span class=""highlight"">"  match.value  "/span>"  
        next  
        'Replace matches from the search with the above code  
        strText = oregExp.Replace(strText, strHighlight)  
     Next  

    highlight = strText  

    Set objRegExp = Nothing  
End Function

標簽:昌都 泰州 咸陽 麗江 溫州 家電維修 鐵嶺 昆明

巨人網絡通訊聲明:本文標題《Highlight patterns within strings》,本文關鍵詞  Highlight,patterns,within,strings,;如發現本文內容存在版權問題,煩請提供相關信息告之我們,我們將及時溝通與處理。本站內容系統采集于網絡,涉及言論、版權與本站無關。
  • 相關文章
  • 下面列出與本文章《Highlight patterns within strings》相關的同類信息!
  • 本頁收集關于Highlight patterns within strings的相關信息資訊供網民參考!
  • 推薦文章
    主站蜘蛛池模板: 桃江县| 古浪县| 峨边| 侯马市| 汉川市| 同江市| 获嘉县| 五家渠市| 玛沁县| 平谷区| 九江县| 平远县| 芒康县| 麻城市| 茶陵县| 乌拉特前旗| 瑞金市| 通渭县| 汾阳市| 武胜县| 阜宁县| 博湖县| 张家港市| 九龙县| 兴文县| 皮山县| 错那县| 沙田区| 尼勒克县| 丰宁| 望谟县| 定陶县| 澎湖县| 乳山市| 江山市| 平南县| 文水县| 青冈县| 文山县| 漯河市| 新郑市|