title: Javascript regex, replace all characters other than numbers
body: <p>I would like to replace all the characters other than 0-9 in a string, using Javascript.</p>
  
  <p>Why would this regex not work ?</p>
  
  <pre><code> "a100.dfwe".replace(/([^0-9])+/i, "")
  </code></pre>