on http://www.php.net/manual/en/function.preg-match-all.php there is a
regex:

        $url = "http://www.catho.com.br/index.phtml";

        $contents = Implode("", File($url));

        preg_match_all("|href=\"?([^\"' >]+)|i", $contents, $arrayoflinks);

        While(List(,$link) = Each($arrayoflinks[1]))
                Echo "$link<Br>";

that pulls allthe urls out of a document by finding the href=.
What I need to find is all the urls in the document and make hrefs out of
them.

ie:
        http://www.mysite.com becomes &lt;a
href="http://www.mysite.com"&gt;http://www.mysite.com&lt;/a&gt;

any ideas?  TIA!

Michael Geier
CDMSports Systems Administration
 EMail: [EMAIL PROTECTED]
 Phone: 314.991.1511 x 6505


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to