Monthly Archives: June 2008
Extract href links from a website content using regular expression
One of my previous post I have discussed about to Grab website content using cURL. In this post I have given a sample code snippet to extract all hyper links from grabbed content using regular expression. By using following class you can grab site content and extract all hyper links: class ScrapWebsite{ var $target_url =…