edit uppercase and lowercase letters in words or standardize text (without language difference - for all languages)

Hi;
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.

sample

" Hello HOW are you "

“Hello how are you”

Hi @umutcankurt

You can achieve this with a String Mainpulation node.
Use: join(upperCase(substr($text$,0,1)),lowerCase(substr($text$, 1)))

Screenshot%20from%202020-01-09%2014-47-31

gr Hans

5 Likes

Hi; @HansS

Thanks for the solution.:+1::+1:

1 Like

Hi Umut,

Regarding your current and previous topics, I think this expression will do all you need at once:

regexReplace(
	capitalize(
		regexReplace(
			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).

Example:

:blush:

4 Likes

thanks Armin. There was only one solution for all of them. :+1:

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.