What's the best way to extract numbers (with dot in between sometimes)from string in one line?
var str = "ghjkhjgbkhj123.45khgbkhjgk67 8kjhgkj hg13.99sads";
I need an array of [123.45, 67, 8, 13.99];
str.match(/\d+/g)
returns slightly different results - it doesn't count "."
.