Re: Filtering URLs problem..

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux