title: Appended extra Escape character in string in c#
body: <p>I have added key in Appsetting of config file and I am trying to read this key.  </p>
  
  <pre><code>&lt;appSettings&gt;
          &lt;add key="fileNameReg" value="(?&amp;lt;=filename\=\&amp;quot;&amp;quot;)(.*?)(?=\&amp;quot;&amp;quot;)" /&gt;
      &lt;/appSettings&gt;
  </code></pre>
  
  <p>below the C# code in which i am trying to read.</p>
  
  <pre><code>string strConfig= System.Configuration.ConfigurationManager.AppSettings.["fileNameReg"];
  </code></pre>
  
  <p>I will get variable <strong>strConfig</strong> value below .</p>
  
  <pre><code>strConfig="(?&lt;=filename\\=\\\"\")(.*?)(?=\\\"\")"
  </code></pre>
  
  <p>In this string, '\' is converted '\\' and &quot; is converted in \" . How I can Get original value back?</p>