title: javascript regular expression
body: <p>I have a function that through regular expression removes html content:</p>
  
  <pre><code>a.replace( /&lt;.*?&gt;/g, "");
  </code></pre>
  
  <p>However, if there are spaces they remain, for example:</p>
  
  <pre><code>&lt;a href='site.com'&gt;    testing&lt;/a&gt;
  </code></pre>
  
  <p>That will keep the spaces. Also for something like this:</p>
  
  <pre><code>&lt;a href='site.com'&gt;    $20&lt;/a&gt;
  </code></pre>
  
  <p>I would like the function to return only 20. So, the question is:</p>
  
  <p>How do I modify the regular expression so that $ and spaces get removed as well?</p>