x = "marchTextIWantToDisplayWithSpacesmarch"trimws(gsub("^\\p{Ll}+|(?<=.)(?=\\p{Lu})", " ", x, perl=TRUE))
Standard input is empty
[1] "Text I Want To Display With Spacesmarch"
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!