Re: [SMARTY] A script to replace URL-s with links ???
| From: | Monte Ohrt | Date: | Tue, 16 Apr 2002 16:30:18 +0000 |
| Subject: | Re: [SMARTY] A script to replace URL-s with links ??? | ||
| References: | 1 2 3 4 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-3772@lists.php.net to get a copy of this message | ||
There are some user notes on this page that might help:
http://www.php.net/manual/en/function.preg-replace.php
Michal Prinke wrote:
Hello, [Sorry if this is off-topic.] Do you know where can I find a good script to replace URL-s with links? The one from the PHP manual page for ereg_replace() does not satisfy me: * does not link email address like root@some.server.com; * does not handle URL-s which do not start with "http://",-- Monte Ohrt <monte@ispi.net> Director of Technology, ispi Inc.but are pretty obvious - like www.server.com;* some scripts (this one, fortunately, no) spoil the addresses whenthey are parenthesized (http://www.server.com) or separated with comas - www.abc.com, www.def.edu. They treat the ending ")" or "," as a part of the address.Do you know where can I find a good script for this? Thank you...