All help is greatly appreciated folks I found a brilliant solution here How to do CamelCase split in python ,
re.sub('([A-Z][a-z]+)', r' \1', re.sub('([A-Z]+)', r' \1', string)).split()
However I need it to stop IF THERE is SPACE Example
t = 'YankeesMets'
>>>['Yankees', 'Mets']
tt = 'CubsWhite Sox'
>>>['Cubs', 'White']
(no more words after the first whitespace)
So, how do I change regex to STOP splitting CamelCase if it finds space?