pattern matching urls
| From: | tux | Date: | Tue, 27 Aug 2002 18:40:34 +0000 |
| Subject: | pattern matching urls | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-114216@lists.php.net to get a copy of this message | ||
hey all,
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?
cheers,
Jo