I need to extract blocks of text that are inside #regions:
#region VARIAVEIS GLOBAIS
string aux1 = "teste";
string aux2 = "teste2";
...
#endregion
The return would be:
string aux1 = "teste";
string aux2 = "teste2";
...
How do I do this with RegEx?
Remembering that each region has a different name.