title: regex - unrecognized escape sequence
body: <p>From: <a href="https://stackoverflow.com/a/959982/101055">https://stackoverflow.com/a/959982/101055</a></p>
  
  <p>I am trying to use:</p>
  
  <pre><code>using System.Text.RegularExpressions;
  
  Dictionary&lt;string, string&gt; parameters = new Dictionary&lt;string, string&gt;();
  parameters.Add("goodName1", "asdf");
  parameters.Add("goodName2", "qwerty");
  string text = "this is my {goodName1} template {goodName2} string";
  text = Regex.Replace(text, "\{(.+?)\}", m =&gt; parameters[m.Groups[1].Value]);
  </code></pre>
  
  <p>I get 2 build errors on <code>\{(.+?)\}</code>, on <code>{</code> and <code>}</code> exactly.</p>
  
  <blockquote>
    <p>ERROR > Unrecognized escape sequence</p>
  </blockquote>
  
  <p>What is wrong here?</p>