Re: Filtering URLs problem..
| From: | Anders Norrbring | Date: | Tue, 20 Dec 2005 16:08:17 +0000 |
| Subject: | Re: Filtering URLs problem.. | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-227732@lists.php.net to get a copy of this message | ||
On 2005-12-20 16:16 Silvio Porcellana [tradeOver] wrote:
Anders Norrbring wrote:Thanks, but I already use PEAR HTML_BBCodeParser for that part.. :) I solved it by a lookbehind, if there isn't a whitespace before the URL, just jump over it. Thanks for the suggestion! -- Anders Norrbring Norrbring ConsultingI'm writing a filter/parsing function for texts entered by users, and I've run into a problem... What I'm trying to do is to parse URLs of different sorts, ftp, http, mms, irc etc and format them as links, that part was real easy..You might want to consider using vbCode, there is a nice class for PHP here: http://www.phpclasses.org/browse/package/1379.html HTH, cheers. Silvio