I have this code to split CamelCase by regular expression:
Regex.Replace(input, "(?<=[a-z])([A-Z])", " $1", RegexOptions.Compiled).Trim();
However, it doesn't split this correctly: ShowXYZColours
It produces Show XYZColours
instead of Show XYZ Colours
How do I get the desired result?