What's the best way to extract prices from string in one line?
<p>What's the best way to extract numbers (with dot in between sometimes)from string in one line?</p>

<pre><code>var str = "ghjkhjgbkhj123.45khgbkhjgk67   8kjhgkj hg13.99sads";
</code></pre>

<p>I need an array of <code>[123.45, 67, 8, 13.99];</code></p>

<p><code>str.match(/\d+/g)</code>  returns slightly different results - it doesn't count <code>"."</code>.</p>