通过本文主要向大家介绍了vbs无效字符,vbs 字符,vbs 替换字符,vbs 字符转换,vbs函数等相关知识,希望对您有所帮助,也希望大家支持linkedu.com www.linkedu.com
Function RegExpTest(patrn, strng)
Dim regEx, Matches
Set regEx = New RegExp
regEx.Pattern = patrn
regEx.IgnoreCase = True ‘为真则忽略大小写,否则严格匹配大小写
regEx.Global = True
Set Matches = regEx.Execute(strng)
RegExpTest = Matches.count
End Function
MsgBox(RegExpTest("is.", "IS1 is2 IS3 is4"))
</div>
Dim regEx, Matches
Set regEx = New RegExp
regEx.Pattern = patrn
regEx.IgnoreCase = True ‘为真则忽略大小写,否则严格匹配大小写
regEx.Global = True
Set Matches = regEx.Execute(strng)
RegExpTest = Matches.count
End Function
MsgBox(RegExpTest("is.", "IS1 is2 IS3 is4"))
</div>