I am trying to take a web page and get all of the links. It almost
works, but I am missing a few links.
Here is what I am using.
preg_match_all( '/href=[\"\']?([^\"\'>]*)[\"\']?[^>]*>(.*?)<\/a>/i',
$s,$matches,PRE G_SET_ORDER);
It will not pick up links like this:
<a class="highligh t" href="browse.ph p?region=West
+Tennessee& zips=38115& mgrp=13&p=2 ">
<b>Next ></b>
</a>
How do I get it to pickup hrefs like the one above?
works, but I am missing a few links.
Here is what I am using.
preg_match_all( '/href=[\"\']?([^\"\'>]*)[\"\']?[^>]*>(.*?)<\/a>/i',
$s,$matches,PRE G_SET_ORDER);
It will not pick up links like this:
<a class="highligh t" href="browse.ph p?region=West
+Tennessee& zips=38115& mgrp=13&p=2 ">
<b>Next ></b>
</a>
How do I get it to pickup hrefs like the one above?
Comment