Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
October 9, 2004, 12:40 am
rate this thread
Re: How to insert a space before capital letters in a string?
Something along the lines of this should help:
$string = 'FirstSecondThird';
$string = preg_replace('/(\w+)([A-Z])/U', '\1 \2', $string);
Chris Hope - The Electric Toolbox - http://www.electrictoolbox.com /
- » ssh on command line: force using a group size (prime size) of 1024 (and no...
- — The site's Newest Thread. Posted in » Secure Shell Forum