SIMIN Posted March 17, 2008 Posted March 17, 2008 (edited) Hi, I have this match collection: 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 don't know where is the last used index so I can start from next one? How can I do this? Thanks:) Edited March 17, 2008 by SIMIN Quote
Administrators PlausiblyDamp Posted March 17, 2008 Administrators Posted March 17, 2008 http://msdn2.microsoft.com/en-us/library/system.text.regularexpressions.matchcollection.copyto.aspx should be able to do what you need. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.