婷婷综合国产,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的相關信息資訊供網民參考!
  • 推薦文章
    主站蜘蛛池模板: 新化县| 溧阳市| 五莲县| 饶阳县| 南康市| 雷波县| 海安县| 建水县| 庄浪县| 崇州市| 宁远县| 永泰县| 集安市| 莆田市| 双辽市| 青神县| 龙里县| 两当县| 余姚市| 宁夏| 图木舒克市| 静海县| 杭锦后旗| 台南县| 金溪县| 通海县| 寻乌县| 富蕴县| 华坪县| 盖州市| 炉霍县| 格尔木市| 汉川市| 格尔木市| 五华县| 理塘县| 万山特区| 固原市| 黄骅市| 垣曲县| 临夏市|