extract price by preg_match_all

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



example data:

<div class="picboxfooter">
  <span class="newprice"><span class="productOldPrice">old price 829,00
&euro;</span><br />your price 58,90 &euro; *</span>
</div>

another :
  <span class="newprice"> 9,90 &euro; *</span>

i want to extract 829,.00 & 58,90 from first source , 9,90 from the second

i tried many way like preg_match_all('/<span
class="newprice">(\$[0-9,]+(\.[0-9]{2})?)<\/span>/',$data,$prices);
it doesn't work

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux