I'm trying to split a string by capital letter BUT i don't want to split two consecutive capital letters.
So for now I'm doing this:
my_string == "TTestStringAA"
re.findall('[a-zA-Z][^A-Z]*', my_string)
>>> ['T', 'Test', 'String', 'A', 'A']
But the output that I'm looking for is:
>>> ['TTest', 'String', 'AA']
There is a clean and simple solution to this problem?
Thx!