Emosaurus_Rex Posted February 5, 2007 Share Posted February 5, 2007 Alright, so imagine you've got a standard HTML page with ten links. I need to get the ones that start with "www.example.com". After loading the HTML page into a string, how do I parse the links into an array? Link to comment https://forums.phpfreaks.com/topic/37092-getting-a-url-from-the-html-of-a-page/ Share on other sites More sharing options...
fert Posted February 5, 2007 Share Posted February 5, 2007 http://us3.php.net/manual/en/function.preg-match.php Link to comment https://forums.phpfreaks.com/topic/37092-getting-a-url-from-the-html-of-a-page/#findComment-177160 Share on other sites More sharing options...
Emosaurus_Rex Posted February 5, 2007 Author Share Posted February 5, 2007 http://us3.php.net/manual/en/function.preg-match.php The problem is though I need to grab everything within href="", the URL isn't just www.example.com, it can be any amount of characters after that. Link to comment https://forums.phpfreaks.com/topic/37092-getting-a-url-from-the-html-of-a-page/#findComment-177162 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.