You are here: Re: what is the preg for capitals in a word to be replaced by that word preceded by a space « PHP Programming Language « IT news, forums, messages
Re: what is the preg for capitals in a word to be replaced by that word preceded by a space

Posted by Toby Inkster on 01/12/07 10:49

zorro wrote:
> zorro wrote:
>
>> preg_replace('/(\w)([A-Z])/', "$1 $2", $string);
>
> That's no good because it would transform WORD into WO RD...

Into 'W OR D' actually. But then again, the OP never specified what he
wanted to happen when multiple uppercase letters appear consecutively.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact

 

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

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