title: Converting backslashes into forward slashes using javascript does not work properly?
body: <p>I have a javascript variable comming from legacy system with backslashes into forward slashes: </p>
  
  <p><code>'/46\465531_Thumbnail.jpg'</code> </p>
  
  <p>and I am trying to convert into this: </p>
  
  <p><code>'/46/465531_Thumbnail.jpg'</code>.</p>
  
  <p>There is no way to fix the problem on the legacy system.</p>
  
  <p>Here is the command I am running on IE8 browser:</p>
  
  <pre><code>javascript:alert("/46\465531_Thumbnail.jpg".replace(/\\/g,"/"));
  </code></pre>
  
  <p>as response I get:</p>
  
  <pre><code>---------------------------
  Message from webpage
  ---------------------------
  /46&amp;5531_Thumbnail.jpg
  ---------------------------
  OK   
  ---------------------------
  </code></pre>
  
  <p>actually I just want to be translated as <code>'/46/465531_Thumbnail.jpg'</code></p>
  
  <p>What is wrong?</p>