婷婷综合国产,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的相關信息資訊供網民參考!
  • 推薦文章
    主站蜘蛛池模板: 临漳县| 饶阳县| 米泉市| 普兰县| 平安县| 宁陵县| 宜川县| 贺兰县| 绿春县| 台江县| 清水县| 靖西县| 股票| 安乡县| 辛集市| 大姚县| 汽车| 信丰县| 老河口市| 镇安县| 获嘉县| 金塔县| 浮梁县| 阆中市| 高青县| 南涧| 怀安县| 连平县| 称多县| 平原县| 南召县| 沁水县| 石柱| 塘沽区| 湾仔区| 万载县| 苍南县| 嘉黎县| 额济纳旗| 安顺市| 吉林市|