title: Javascript replace "\\" to "\"
body: <p>How can I replace in my string <code>\\</code> to <code>\</code>? For example, I want to convert <code>RegExp('\\\\b')</code> to <code>RegExp('\\b')</code>. I've tried:</p>
  
  <pre><code> mystring.replace('\\','\'');
  </code></pre>