bazz
10-27-2005, 02:59 PM
Hi,
I have a string which I want to break up at each capital by putting a space immedately before each one.
ThisIsThursday should then read like this, This Is Thursday.
my ( $organisationName1 , $organisationName2, $organisationName3, $organisationName4, $organisationName5) = ($organisationName =~ /(....)/g); # split organisationName after each four characters.
Then I tried, $organisationName = split(/[A-Z]/); but that A-Z seems not to work
Can any of you give me an idea. Presently, I am thinking about 'split' then 'join' So any help with splitting on caps would be appreciated.
Bazz
I have a string which I want to break up at each capital by putting a space immedately before each one.
ThisIsThursday should then read like this, This Is Thursday.
my ( $organisationName1 , $organisationName2, $organisationName3, $organisationName4, $organisationName5) = ($organisationName =~ /(....)/g); # split organisationName after each four characters.
Then I tried, $organisationName = split(/[A-Z]/); but that A-Z seems not to work
Can any of you give me an idea. Presently, I am thinking about 'split' then 'join' So any help with splitting on caps would be appreciated.
Bazz