expected output : textShouldBeInCamelCase
Discussion posts and replies are publicly visible
Is the sample input for this - "Text Should Be In Camel Case"?
Yes
Did you try anything? There a plenty of text functions that should help you to implement your own custom expression rule?
stripwith(proper("Text Should Be In Camel Case"), " ")
concat( a!forEach( split(local!myText, " "), if( fv!isFirst, lower(fv!item), proper(fv!item) ) ) )
This example ^ needs further adjustment to make the first letter lower case:
a!localVariables( local!text: "Text shOUld be in camel Case", local!proper: stripwith(proper(local!text), " "), concat( lower(left(local!proper,1)), right(local!proper,len(local!proper)-1) ) )
(It won't let me Quote the post when there is only a code snippet and no other text apparently..)
I dunno, I find the a!forEach() solution a bit more graceful than force-swapping the left-most single character
I am a big a!forEach() fan, but just working on my brownie points with Stefan for using non-looping solutions
Thanks It Worked ..