Is there a way to get the variables that were used in a RegEx.Replace to use in .NET? -


For example, I have a pattern that I'm looking for to use the \ G option so that it's his last Remember the search. I want to be able to reuse them. For example:

  string pattern = @ "\ g & lt; test: something \" * for example: net c # (i.e.: save matches in archives)  

;; String id = regEx.match (original, pattern). value; // The boy above has 3 matches and I want to save all of them in a general list

I hope it is clear, if I can not expand.

Thank you: -)

You must use the RegEx.Matches function and It has to be repeated through the collection.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -