preg_match , regexp , php , extract text from html
Posted
by Michael
on Stack Overflow
See other posts from Stack Overflow
or by Michael
Published on 2010-05-22T04:01:48Z
Indexed on
2010/05/22
4:10 UTC
Read the original article
Hit count: 287
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 ?
© Stack Overflow or respective owner