If i have a number in a string like this:
a word: "2 291.59159 another word"
how can i get it? I was doing an explode on a space until i discovered some of the numbers, when in the 1,000’s had a space in them!
I have this for number match:
$string = ereg_replace("[^0-9]", "",$ms);
but could i add decimals and spaces to the match, and then maybe trim the extra space off the end??