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 Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.