I have a string like this
Text Text TextText Text Text T5df Tdfcv TextNeu
In other words:
If there is a change from Lowercase to Uppercase within a word, this is where a new line should be inserted as \n
.
So the example would convert to
Text Text Text\nText Text Text T5df Tdfcv Text\nNeu
I am using ICU regex.
I tried "[\p{Upper}]"
, which matches all uppercase literals, but not with a preceding lowercase in the same word.
Also I need to know what to replace it with as regex.
How do I accomplish that?