I have text where spaces between some words is missing. These spots are easy to find with regex because it is always something following by capital letter without the space. I can't workout how to add the space though.
My String Replacer looks like this: @ReplaceRegEx(@Value(Speciality),([^ ])([A-Z]), \\1, \\2)
The output it produces is:
Anxiety, Panic & Phobia shildren & Adolescent selationships Outside work (ndividual counselling )eadership
Original:
Anxiety, Panic & PhobiasChildren & AdolescentsRelationships Outside work (Individual counselling)Leadership
So it adds space, just not where I need it and removes the capital letter. I tried many variations, but none of them produces the needed outcome.