I have found numerous examples on how to split a string on uppercase, example:
"MyNameIsRob"
returns "My Name Is Rob"
My scenario is a bit differnet through....
I would like to accomplish the following:
"MyFavouriteChocIsDARKChocalate"
should return "My Favourite Choc Is DARK Chocalate"
The only way I can think of doing this, is to only split the string on upperacase if the next character is lowercase.
Any idea on how to achieve this?