I have a url and I have to find a contact link within the url.
So what I did was use the simple_html_dom.php to loop through all the a tags and if it contains the word "contact" or "advertis" then it's the contact url. But this is actually very slow.
So what i want to do now is scrape the page using curl (no problem, even multi curl in the future) and have a regex try to find within the scrape result a a href link if the link contains either "contact" or "advertis".
I would use preg_match_all but what would the regex be?