C#正規表現を使用して、文字列からすべてのインスタンスのペアの括弧を削除する方法を理解しようとしています。括弧とその間のすべてのテキストを削除する必要があります。括弧は常に同じ行にあるとは限りません。また、それらはネストされた括弧である可能性があります。文字列の例は次のようになります
This is a (string). I would like all of the (parentheses
to be removed). This (is) a string. Nested ((parentheses) should) also
be removed. (Thanks) for your help.
必要な出力は次のようになります。
This is a . I would like all of the . This a string. Nested also
be removed. for your help.