I'm new to RegEx and I find it really confusing, so I would like a simple example of how to extract multiple strings of the same type.
Let's say we have a random string and I want to capture anything that is surrounded by "###". So I assume the pattern would look something like this:
string str = "dsad###hi###vdkv324da###dog###fs";
Regex pattern = new Regex("###.+###");
How do I match and store more than one occurrences? And the bigger question - after I do that I'll be left with "###hi###" and "###dog###", so how do I extract the "hi" and "dog" from those?