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]
|