split_string = []
previous = 0
for match in matches:
    split_string.append(identifier[previous:match.start()])
previous = match.start()
split_string.append(identifier[previous:])
return split_string
How to do CamelCase split in python