Posted by Toby Inkster on 01/11/07 13:53
zorro wrote: > $string = ' > thisSeems > toWork > prettyWell'; > > echo preg_replace('/([a-z])([A-Z])/',"$1 $2",$string); IWantIt2Work => IWant It2Work ;-) Try: echo preg_replace('/(.)([A-Z])/', "$1 $2", $string); -- Toby A Inkster BSc (Hons) ARCS Contact Me ~ http://tobyinkster.co.uk/contact
[Back to original message]
Copyright © 2005-2006 Powered by Custom PHP Programming