How do u scrape part of web pages using regex I know I know there is google but I can find it. How do you scape parts of web pages like google trends.
If you DO want to scrape, you need to look for unique patterns in the data/tags and parse it out - something along the lines of: if this case the function is loading the whole page first, so you don't want to have this live on your site, but have it dump just the data itself to a file (using a cron job if need be), and then just read the data file into your site.
i prefer using greedy modifier like this i also recommend using a different delimiter to the traditional forward slash - not very helpful when parsing html. $pattern = '%<h1 class="title">(.+?)</h1>%'; preg_match($pattern, $html, $matches); $title = $matches[1];
Thanks, that makes more sense herby... (He means a modifier that grabs it all - whatever's between the tags...)