Possible Duplicate:
How to parse and process HTML with PHP?
I am working on a script that is supposed to scrap the html of a page and find the "Contact" or "Contact Us" url on the page. So what I have is the url and I was able to get the html of the page using curl.
Now all i need to do is find the contact link and try to extract the email address and the phone number.
My question is how do I fond the contact url? What should I look for? Maybe the link text should have the word contact in it or maybe the url should have the word contact? What would the regex look like for that?
And second I think once i have the contact page i should be able to find a regex online that will extract the email address and the phone number. So it's i just need to find the contact link. These pages i am scraping are blogs.