MatchCollection to Array

SIMIN

Well-known member
Joined
Mar 10, 2008
Messages
92
Hi,
I have this match collection:
Code:
Dim MC As MatchCollection = Regex.Matches(y, "x")
Now I want to split the match collection to an string array!
I know I can use MC.CopyTo(MyArray, ?)
But the question mark is that I dont know where is the last used index so I can start from next one?
How can I do this?
Thanks:)
 
Last edited by a moderator:
Back
Top