title: regex does not remove non digits from string
body: <p>I have the following string "item number:237728"
  I'm applying replace </p>
  
  <pre><code>str.replace(/[^0-9]/g,'');
  </code></pre>
  
  <p>but the string does not change, non digits are not removed. any idea why? 
  thanks</p>