import retext = r'Where_IsKCR'print( list(filter(None, re.split(r'_|(?<=[^A-Z])(?=[A-Z])', text))) )
Standard input is empty
['Where', 'Is', 'KCR']
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!