JordanStreet Posted April 2, 2007 Share Posted April 2, 2007 I have a page with a lot of html jiberish and burried in that page is a series of links in the form of <a href="site.php?site=xxxxx">xxxxx</a> I want php to do this. Search through the file and find each <a href="site.php?site=xxxxx">xxxxx</a> then isolate what is between site= and "> then add that to an array so that $matches[0] = xxxxx $matches[1] = xxxxx How would I go about doing this ? Thanks in advance guys Link to comment https://forums.phpfreaks.com/topic/45315-searching-then-extracting/ Share on other sites More sharing options...
MadTechie Posted April 2, 2007 Share Posted April 2, 2007 i think regular expressions is probably a good place to start. http://www.phpfreaks.com/forums/index.php/board,43.0.html Link to comment https://forums.phpfreaks.com/topic/45315-searching-then-extracting/#findComment-220013 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.