Remove escape character from string
<p>I would like to turn this string:</p>
<pre><code>a = '\\a'
</code></pre>
<p>into this one</p>
<pre><code>b = '\a'
</code></pre>
<p>It doesn't seem like there is an obvious way to do this with <code>replace</code>?</p>
<p>To be more precise, I want to change the escaping of the backslash to escaping the character <code>a</code>.</p>