title: Escaping Closing Braces
body: <p><code>System.Text.RegularExpressions.Regex.Escape()</code> escapes only opening braces. Is there a .NET Framework method which escapes closing braces for usage in regex? I can't seem to find any. I'd hate to hardcode the characters.</p>
  
  <p><strong>edit</strong>: I need to generate "(?&lt;-open>)" tags for balancing group definitions. I receive a list of characters representing closing delimiters, escape them and then add them to the expression in "(?&lt;-open>)" tags. So, yes, I really do have to escape closing braces as well.</p>