hi,
i would like for this regexp
preg_match_all('/<a href="\\/How_I_Met_Your_Mother\\/season-.+[^next]/', $html, $link, PREG_PATTERN_ORDER);
to grab only somthing like this:
<a rel="nofollow" data-track-action="ClickNonFeaturedLSRPLink" href="/How_I_Met_Your_Mother/season-1/episode-1/links/5215143">videobb.com</a>
not this:
<a rel="next" href="/How_I_Met_Your_Mother/season-1/episode-1/search?page=2">2</a>
or this:
<a rel="next" class="next_page" href="/How_I_Met_Your_Mother/season-1/episode-1/search?page=2">Next ยป</a>
or this:
<a class="dofollow" href="/How_I_Met_Your_Mother/season-1/episode-1/search">search</a>
or this:
<a class="donotfollow sr-blue" href="/How_I_Met_Your_Mother/season-1/episode-1">Season 1 Episode 1</a>
but it is grabing them all!
can you give me some pointers
thanks