Re: pattern matching urls
| From: | Richard Lynch | Date: | Tue, 27 Aug 2002 21:51:13 +0000 |
| Subject: | Re: pattern matching urls | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-114291@lists.php.net to get a copy of this message | ||
>Just wanting some advice on something im doing, basically im storing
>news into mysql and what i want to do is, when the news is displayed, if
>a url is in there ie(http://www.blahblah.com OR
>mailto:person@domain.com) it will automatically be displayed as
>a link,
>im considering using preg_match for this but i was wondering if there is
>any other function already designed for automatically detecting urls?
No built-in function, but only a zillion examples in various code archives.
http://php.net/links.php
--
Like Music? http://l-i-e.com/artists.htm