This script can replace links: $text = ereg_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]", "<a href=\"\\0\">\\0</a>", $text); But it cannot get the links.
On Sun, 25 Jul 2004 09:18:28 +0800 Jason Wong <[EMAIL PROTECTED]> wrote: > On Saturday 24 July 2004 16:08, Wudi wrote: > > Hm, Perl is OK. Could you send that program to me? > > I have searched the class in phpclasses.org, but not found. > > The classes I searched only can replace the link, can't get links. > > Hmmm it needs to be able to *find* the links before it can replace them. Just > borrow the code that finds the links. > > -- > Jason Wong -> Gremlins Associates -> www.gremlins.biz > Open Source Software Systems Integrators > * Web Design & Hosting * Internet & Intranet Applications Development * > ------------------------------------------ > Search the list archives before you post > http://marc.theaimsgroup.com/?l=php-general > ------------------------------------------ > /* > Calling you stupid is an insult to stupid people! > -- Wanda, "A Fish Called Wanda" > */ > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -------------------------------------------------- Comment: English is not my first language. Wudi <[EMAIL PROTECTED]> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php