The results I am trying to extract data from are in the following format
<a href="anime/hackroots">.hack//Roots</a> <img src="images/video.png" border=0 width=16 height=16 alt="Flash video available" title="Flash video available"> (8) <br><a href="anime/hacksign">.hack//SIGN</a>
I am trying to extract the location and name of each anime using the following code:
preg_match_all('#<a href="anime/(.*)">(.*?)</a>#', $content, $match);
However, the results stretch across many lines, with 50+ results on each line, and I am not able to fetch a single match using that method, so was wondering what I am doing wrong.
Any help would be much appreciated!