Re: Filtering URLs problem..

From: 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:
I'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
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 Consulting

« previous php.general (#227732) next »