Ok so I've got this
By the name of the object type MatchCollection, it would seem that it is an object that would support multiple matches. Yet the above code (which should produce multiple matches) only produces one match. The first match should be "23" and the second match should be "2j". Yet it only returns one match, as I can tell by printing the matches count.
Please help. Thanks in advance.
Code:
Dim RegExp As New RegExp
Dim Matches As MatchCollection
a = "abc123xyzc12jjj"
RegExp.Pattern = "2."
Set Matches = RegExp.Execute(a)
Print Matches.Count
Please help. Thanks in advance.