hi
i get the following from a regex:
List Price:
$4,500,000
I want to just return 4500000 without any text or tabs or line breaks or anything...any ideas?
Thanks
Darren
Hi!
Try this: $number = ereg_replace("[0-9]", "", $number);
HTH
inK
that should work but for some reason does not - the text inside the *** is exactly what I am trying to parse:
Bedrooms:
3
any other ideas?
Thanks once again
It does work. The following echoes "3." Is that not what you wanted?
<? $string = "*************************** Bedrooms:
****************************"; $string = ereg_replace("[0-9]", "", $string); echo $string; ?>