0

I have a page with many HTML lines like this:

<ul><li><a href='a_silly_link_that_changes_each_line.php'>the_content_i_need</a></li></ul>

Now as you can see, theres a link in that line, which unfortunately changes on each line.

So I need a way to scrape the content in that line, without letting the link get in the way.

I've also tried to scrape like this: .php'>(*.)</a></li></ul> but thats no good, as it returns allot of unwanted content.

Also, because there are many lines on the page that i need to take the content from, could i just loop through, somehow?

I'm using preg_match and file_get_contents but am open to other suggestions. :)