I have strings like this:
"1 -2 -0.00529366960223319 -1.72662226752857E-5 some text"
And I want to parse the numbers to an array, removing text, using javascript, to return this:
[1, -2, -0.00529366960223319, -1.72662226752857E-5]
I tried lots of expression, like the following:
/[-+]?[0-9]*.?[0-9]+([eE][-+]?[0-9]+)?/
without success, any help?
thanks in advance!