Is there any way to split the string if it contains an uppercase letter but not the first letter?
For example, given "RegularExpression" I would like to obtain "Regular Expression".
I tried the following regex to solve it:
re.sub("[a-z]{1}[A-Z][a-z]{1}", " ","regularExpress")
But this deletes the matching pattern:
regular press
Should I prefer the regex solution or is there any other solution to it?