I have xml files to replace info between tags . It works when my xml file have body like this:
<VARIABLES>test</VARIABLES>
Problem starts when it is like that:
<VARIABLES>test
test
test
</VARIABLES>
My pattern didn't see it at all:
string newText = Regex.Replace(content, "(?<=<VARIABLES>).+?(?=</VARIABLES>)", replaceWithText);