Page 1 of 1

scraping data from another site

Posted: Thu May 17, 2007 1:24 pm
by ojsimon
I have been trying for ages unsucessfully to write a regular expresion parser for php that will get the best price from any product page at pricerunner.com, please help
Thnaks

feyd | I couldn't find a reason this post was in the welcome thread, so it's been split.

Posted: Sat May 19, 2007 1:19 pm
by Ollie Saunders
If you're looking for dollars something like this will probably do:
~\$(\d+(?:\.\d+)?)~

array_map() with floatval() and max() should help with the rest.