Regular Expression to find all except digits and decimals : <p>the regular express <code>/\D/g</code> identifies all non numeric characters and the following code will replace the letter 'q' and decimal '.' in <code>str</code> and result in <code>10025</code></p>

<pre><code>  var str = "10q0.25"; 
  var result = str.replace(/\D/g, '');
</code></pre>

<p>How can the regex be changed so as to allow the decimal point also and resulting in  <code>100.25</code> ?</p>
