title: Removing all instances of a character from a string
body: <p>I'm attempting to remove all instances of a given set of characters <code>£$€,.</code> from a string in jQuery/Javascript. I'm using the <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace" rel="nofollow">replace</a> function, however this only appears to remove a single instance of the character and not all of them.</p>
  
  <p>For example consider the string:</p>
  
  <pre><code>1,500,00.00.$djdjd£10€10
  </code></pre>
  
  <p>I get back:</p>
  
  <pre><code>1500,0000.djdjd1010
  </code></pre>
  
  <p>As you can see, it only removes a single instance of each character. <code>£,</code> <code>$</code> and <code>€</code> are fine as there is only one of each in the string.</p>
  
  <p>Here is what I have so far:</p>
  
  <pre><code>function validatePriceRange(value, min, max) {
  
      var replacements = ["£", "$", "€", ",", "."];
  
      $.each(replacements, function (index, item) {
          value = value.replace(item, "");
      });
  
      var value = parseInt(value, 10);
  
      return value &gt;= min &amp;&amp; value &lt;= max;
  }
  </code></pre>
  
  <p><a href="http://jsfiddle.net/Y8J3x/" rel="nofollow">jsFiddle</a></p>
  
  <p>Can anyone spot what I've done wrong?</p>