Reply to Re: [PHP] Filtering URLs problem..

Your name:

Reply:


Posted by Anders Norrbring on 12/20/05 18:08

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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация