String replace in javascript
<p>So I have this string <code>var total_res = R4-4R4-5;</code> and I want to replace <code>R4-5</code> substring with <code>""</code>,but I have tried this code so far and it doesn't work:</p>

<p>Javascript:</p>

<pre><code>&lt;script&gt;
   $(document).ready(function(){
        ss = "R4-5";
        lool = total_res.replace(ss,"");
        alert(lool);//it alerts the same original string
   });    
&lt;/script&gt;
</code></pre>

<p>What is wrong? Thank you for your help.</p>
