I am currently struggling to find a .NET-RegEx that deletes a given text in brackets only if the brackets are in a nested level of 2.
Here is a sample-string in multiple lines to exlain the problem:
(
(text
(bingo) <-- keep this (level=3)
text)
(text)
(bingo) <-- kick this (level=2)
(text)
)
Now I need to delete the text "(bingo)" in level 2 but not in any other nested level.
Unfortunately I need to use .NET RegEx for this. Any help is more than welcome.