VBS中正则表达式的使用格式

Set FindItemRegEx=New RegExp 
FindItemRegEx.Pattern="yourPattern"
FindItemRegEx.Global = True
FindItemRegEx.IgnoreCase = True
Set Matches = FindItemRegEx.Execute(yourString)
If Matches.Count<>0 Then
For each Match in Matches
...
Next
End If

---------------------------------------------------------------

AUTHOR:testerZH

用途:菜鸟的个人学习记录,有不对的地方请指正!谢谢!

出处:http://www.cnblogs.com/testerZH/

原文地址:https://www.cnblogs.com/testerZH/p/2227662.html