preg_match , regexp , php , extract text from html
- by Michael
I'm trying to extract "Florida (FL)" from http://www.auctionarms.com/search/displayitem.cfm?itemnum=9736364&oh=216543.
My code is
//get location
$pattern = "/(State)<\/i\:<\/td(.*)<\/td/";
preg_match_all($pattern, $htmlContent, $matches);
print_r($matches);
any idea why is not working ?