I'd like some help on this project I'm working on. I've used the file(); function to retrieve a web page and then loop through it to display the line numbers. What I want to do is now that I have the page, extract all the <a></a> between two certain points in the code. From there I want to take the data that was extracted and for the time being, output it as HTML just to test it. Is this possible? If so, the problem (for me) is going to be extracting the data between two points in the code. Here's what I have to get the <a></a> tags:
<?php
$string = preg_match_all("{^<a>$</a>+}");
?>
That doesn't look right, but it's what I have so far. Thanks for any help you all can give. This is a big project to me (there's a lot more to it than just this as this is only the first step. 🙂