programming-examples/python/Regular_Expression/Split a string at uppercase letters.py
2019-11-15 12:59:38 +01:00

3 lines
93 B
Python

import re
text = "PythonTutorialAndExercises"
print(re.findall('[A-Z][^A-Z]*', text))