";
print_r($matches);
echo "";
} else {
echo "Didn't find anything...";
}
?>
Untested.
/frank
14 feb 2011 kl. 15.05 skrev Tontonq Tontonq:
> example data:
>
>
> old price 829,00
> €your price 58,90 € *
>
>
> another :
> 9,90 € *
>
> i want to extract 829,.00 & 58,90 from first source , 9,90 from the second
>
> i tried many way like preg_match_all('/ class="newprice">(\$[0-9,]+(\.[0-9]{2})?)<\/span>/',$data,$prices);
> it doesn't work
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php