Hi I need to find all matches in a large string, I found this question
Detect particular tokens in a string. C#
Which seemed perfect! Only problem it didn't work. The difference between that problem and mine is that instead of using #\w+# I need to use [[\w+]]. Here is the code I have (sb is my large string):
Regex reg = new Regex(@"[[\w+]]");
foreach (Match m in reg.Matches(sb.ToString()))
{
RenderHtmlRecursive(helper, sb, path, m.Value);
}
When I run this I get 1 match :) but the value is (m.Value): "t]"
sb is (small text for now): Card card [[RegisterText]]
Any ideas?