programming-examples/python/Regular_Expression/Split a string at uppercase letters.py

3 lines
93 B
Python
Raw Normal View History

2019-11-15 12:59:38 +01:00
import re
text = "PythonTutorialAndExercises"
print(re.findall('[A-Z][^A-Z]*', text))