• <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>
  • VBScript IgnoreCase 屬性

    發表于:2007-06-21來源:作者:點擊數: 標簽:
    IgnoreCase 屬性 設置或返回一個 Boolean 值,指明模式搜索是否區分大小寫。 object . IgnoreCase [= True | False ] Object 參數總是一個 RegExp 對象。如果搜索是區分大小寫的,則 IgnoreCase 屬性為 False ;否則為 True 。缺省值為 False 。 說明 下面的

       

    IgnoreCase 屬性

    設置或返回一個Boolean值,指明模式搜索是否區分大小寫。

    object.IgnoreCase [= True | False ]

    Object 參數總是一個 RegExp 對象。如果搜索是區分大小寫的,則 IgnoreCase 屬性為 False;否則為 True。缺省值為 False。

    說明

    下面的代碼說明了 IgnoreCase 屬性的用法(改變賦予 IgnoreCase 屬性的值以觀察其效果):

    Function RegExpTest(patrn, strng)
      Dim regEx,Match,Matches         ' 建立變量。
      Set regEx = New RegExp         ' 建立正則表達式。
      regEx.Pattern = patrn         ' 設置模式。
      regEx.IgnoreCase = True         ' 設置不區分大小寫。
    regEx.Global=True                             ' 設置全局可用性
    set matches=regExExecute(string )             ' 執行搜索。
    for each match in matches                     ' 重復匹配集合
    RetStr=RetStr &"Match found at position "
    RetStr=RetStr&Match.FirstIndex&".Match Value is '"
    RetStr=RetStr&Match.Value&"'."&vbCRLF 
    Next
    RegExpTest=RetStr
    End Function
    MsgBox(RegExpTest("is.", "IS1 is2 IS3 is4"))

    原文轉自:http://www.kjueaiud.com

    老湿亚洲永久精品ww47香蕉图片_日韩欧美中文字幕北美法律_国产AV永久无码天堂影院_久久婷婷综合色丁香五月

  • <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>