You are here: Re: text to html conversion « HTML « IT news, forums, messages
Re: text to html conversion

Posted by Jim Higson on 11/18/05 11:23

Toby Inkster wrote:

> Andy Dingley wrote:
>
>> You use Perl rather than SSI because there's probably a regex in there
>> that recognises a blank line and turns it into </p><p> markup.
>
> s/^\s*$/<\/p><p>/g;
>

Except the g probably isn't needed, unless you need the abilty to detect
more than one blank line per line :)

 

Navigation:

[Reply to this 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

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