You are here: Re: Regexp to force line break/word wrap in long words « PHP Programming Language « IT news, forums, messages
Re: Regexp to force line break/word wrap in long words

Posted by Paul Lautman on 12/03/07 22:12

Ciaran wrote:
> Hi Can someone please give me a hand adapting this expression? I need
> it to add a space into all words longer than 14 characters that are
> not contained within [square brackets]
>
> $result = preg_replace("/([^\s]{14})/","$1 ",$result);
>
> It currently adds a space into all words that are longer than 14
> characters but this is breaking another function I'm using which
> extracts urls and other info from inside square brackets.
>
> Thanks a lot!
> Ciar�n

I need more information to answer this, but no point in asking for it as I'm
sure in your expert view I have all Ineed!

 

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

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