|
Posted by Rik Wasmus on May 31, 2008, 11:08 am
Please log in for more thread options
=
wrote:
> 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=3D[\"\']?([^\"\'>]*)[\"\']?[^>]*>(.*?)<\/a>/i',
> $s,$matches,PREG_SET_ORDER);
>
>
> It will not pick up links like this:
>
> <a class=3D"highlight" href=3D"browse.php?region=3DWest
> +Tennessee&zips=3D38115&mgrp=3D13&p=3D2">
> <b>Next ></b>
> </a>
>
>
> How do I get it to pickup hrefs like the one above?
Add the /s modifier
-- =
Rik Wasmus
...spamrun finished
|