So I have this string[]:
string[] middleXMLTags = {"</Table1><Table2>", "</Table2><Table3>"};
And I want to do something like this with it:
int i = 0;
foreach (regex where it finds the replacement string)
{
response = Regex.Replace(response, "</Table><Table>", middleXMLTags[i]);
i++;
}
response = Regex.Replace(response, "<Table>", <Table1>);
response = Regex.Replace(response, "</Table>", </Table3>);
Ultimately, I'm just asking if it's possible to somehow loop through a Regex, and therefore being able to replace the string with different values that are stored in a string[]. It doesn't have to be a foreach loop, and I know that this code is ridiculous, but I put it hear to ask the clearest possible question. Please comment any questions you have for me.
Thanks for all help =)