Javascript replace() to remove single quote produces weird result
<p>With this code</p>

<p><code>"test\536".replace(/'/g, "")</code></p>

<p>I would expect there is no different to the original string, because there is no single quote. But I get this instead</p>

<p><code>"test+6"</code></p>

<p>When I run this on a string with single quote, it works as expected</p>

<pre><code>"test'536".replace(/'/g, "")
"test536"
</code></pre>