title: Replace substring containing '+'
body: <p>I have a string with sub-string '5+' and it looks like <code>sales/100/5+</code>. I need to remove the sub-string <code>5+</code>.</p>
  
  <p>Input  : <code>sales/100/5+</code></p>
  
  <p>Demanded output : <code>sales/100</code></p>
  
  <p>The jquery script is as follows:</p>
  
  <pre><code>var rstring = 'sales/100/5+';
  if((splitStr == '5+')||(splitStr == '4-')) {
      var key = rstring.replace(new RegExp('/'+splitStr, 'g'),"");
      alert(key);
  }
  </code></pre>
  
  <p>Now im getting the result  : sales/100+ </p>
  
  <p>But desired output is      : sales/100 </p>