edit uppercase and lowercase letters in words or standardize text (without language difference - for all languages)
The words in the text just want to split the initial letter uppercase and the remaining letters lowercase. how can I do it. There should be a valid container solution in different languages.
" Hello HOW are you "
“Hello how are you”
You can achieve this with a String Mainpulation node.
Use: join(upperCase(substr($text$,0,1)),lowerCase(substr($text$, 1)))
Regarding your current and previous topics, I think this expression will do all you need at once:
regexReplace($raw$, "\\s+", " ")
, "^ | $|(?<=\\.) ", "")
, "\\.(?!$)", ". ")
This expression will:
- remove leading and trailing white spaces.
- replace several white spaces with a single one.
- capitalize the first word of the string and the first word of each sentence (after each period).
thanks Armin. There was only one solution for all of them.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.