Jump to content

Parsing a Price from a Website


IcoLove

Recommended Posts

Hey all

 

I'm trying to parse the price from http://www.henrys.com/webapp/wcs/stores/servlet/ItemsDisplay?storeId=10001&catalogId=10001&departmentId=10404&categoryId=10429&itemID=224004

 

I have the script parsing 8 others without an issue, but this one has me stumped.

 

if (strpos(strtolower($priceurl) , "henrys")) {
$regex = "Price:.+?<b>(.+?)CAD";
}

 

Is there anything wrong there?

 

 

Thanks a ton.

Craig

Link to comment
https://forums.phpfreaks.com/topic/145293-parsing-a-price-from-a-website/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.