title: Javascript Regular Expressions - Replace non-numeric characters
body: <p>This works:</p>
  
  <pre><code>var.replace(/[^0-9]+/g, '');  
  </code></pre>
  
  <p>That simple snippet will replace anything that is not a number with nothing.</p>
  
  <p>But decimals are real too.  So, I'm trying to figure out how to include a period.</p>
  
  <p>I'm sure it's really simple, but my tests aren't working.</p>