How to search a word by regular expression?
To search a word by using regular expression,
E.g.,
Set regEx = New RegExp
regEx.Pattern = "AuTo"
regEx.IgnoreCase = True
regEx.Global = True
msgbox regEx.Execute("mass auto mass so many mass players").count
Set regEx = Nothing
E.g.,
Set regEx = New RegExp
regEx.Pattern = "AuTo"
regEx.IgnoreCase = True
regEx.Global = True
msgbox regEx.Execute("mass auto mass so many mass players").count
Set regEx = Nothing

Comments
Post a Comment