title: Regex remove all special characters except numbers?
body: <p>I would like to remove all special characters (except for numbers) from a string. I have been able to get this far</p>
  
  <pre><code>var name = name.replace(/[^a-zA-Z ]/, "");
  </code></pre>
  
  <p>but it seems that it is removing the first number and leaving all of the others. </p>
  
  <p>For example:</p>
  
  <pre><code>name = "collection1234"; //=&gt; collection234
  </code></pre>
  
  <p>or </p>
  
  <pre><code>name = "1234567"; //=&gt; 234567
  </code></pre>