I have a regex that I am trying to pass a variable to:
int i = 0;
Match match = Regex.Match(strFile, "(^.{i})|(godness\\w+)(?<=\\2(\\d+).*?\\2)(\\d+)");
I'd like the regex engine to parse {i}
as the number that the i
variable holds.
The way I am doing that does not work as I get no matches when the text contains matching substrings.