'建立变量。
Set regEx = New RegExp '建立一般表达式。
regEx.Pattern= patrn '设置模式。
regEx.IgnoreCase = True '设置是否区分大小写。
regEx.Global=True '设置全局可用性。
set Matches=regEx.Execute(string) '重复匹配集合
RegExpTest = regEx.Execute(strng) '执行搜索。
for each match in matches '重复匹配集合
RetStr=RetStr &"Match found at position "RetStr=RetStr&Match.FirstIndex&".Match Value is '"RetStr=RetStr&Match.Value&"'."&vbCRLF NextRegExpTest=RetStrEnd FunctionMsgBox(RegExpTest("is.", "IS1 is2 IS3 is4"))
您可能感兴趣的文章:
对squid中refresh_pattern的一些理解和建议JAVA正则表达式 Pattern和MatcherJavaScript constructor和instanceof,JSOO中的一对欢喜冤家Javascript的构造函数和constructor属性JavaScript类和继承 constructor属性理解Javascript_11_constructor实现原理用于过滤空白字符的几种常见的js正则表达式patternphp设计模式 Prototype (原型模式)代码js constructor的实际作用分析深入分析js中的constructor和prototypeAspNetPager分页控件UrlRewritePattern参数设置的重写代码JavaScript中几个重要的属性(this、constructor、prototype)介绍JavaScript设计模式之原型模式(Object.create与prototype)介绍js使用Array.prototype.sort()对数组对象排序的方法php示例详解Constructor Prototype Pattern 原型模式