in reply to Insert Space between names

Or this...

$string =~ s/(?<=\w)([A-Z])/ $1/g;

Now any capital letter character preceedd by a 'word' character will have a space prepended.


Dave