AG广东会,山东十一选五,大发

?
  • AG广东会400电话
  • 微网小程序
  • AI电话山东十一选五
  • 电商代运营
  • AG广东会,山东十一选五,大发:全 部 栏 目

    AG广东会400电话 网络优化推广 AI电话山东十一选五 呼叫中心 网站建设 商标?知产 微网小程序 电商运营 彩铃?短信 增值拓展业务
    VBS教程:方法-Execute 方法

    AG广东会,山东十一选五,大发:Execute 方法

    对指定的字符串执行搜索。

    object.Execute(string)

    参数

    object

    必选项。总是一个 RegExp 对象的名称。

    string

    必选项。要在其上执行的文本字符串。

    说明

    搜索的设计模式是通过 RegExp 对象的 Pattern 来设置的。

    Execute 方法返回一个 Matches 集合,其中包含了在 string 中找到的每一个匹配的 Match 对象。如果未找到匹配,Execute 将返回空的 Matches 集合。

    下面的代码说明了 Execute 方法的用法。

    Function RegExpTest(patrn, strng)  Dim regEx, Match, Matches      ' Create variable.  Set regEx = New RegExp         ' Create a regular expression.  regEx.Pattern = patrn         ' Set pattern.  regEx.IgnoreCase = True         ' Set case insensitivity.  regEx.Global = True         ' Set global applicability.  Set Matches = regEx.Execute(strng)   ' Execute search.  For Each Match in Matches      ' Iterate Matches collection.    RetStr = RetStr  "Match found at position "    RetStr = RetStr  Match.FirstIndex  ". Match Value is '"    RetStr = RetStr  Match.Value  "'."  vbCRLF  Next  RegExpTest = RetStrEnd FunctionMsgBox(RegExpTest("is.", "IS1 is2 IS3 is4"))
    上一篇:VBS教程:方法-Raise 方法
    下一篇:VBS教程:方法-Clear 方法
  • 相关文章
  • ?

    ? 2016-2020 巨人网络通讯 版权所有

    《增值电信业务经营许可证》 苏ICP备15040257号-8

    VBS教程:方法-Execute 方法 VBS,教程,方法,-Execute,VBS,

    AG广东会官网入口(中国)官方网站-IOS/Android通用版(2026已更新)