If I have a Python string, how can I use re.findall to extract only the items that start with a capital letter?
My string looks like this:
my_string = ['a17b', 'Cupcake', '8ikl3', 'Dinosaur']
I want my extracted string to look like this:
new_string = ['Cupcake', 'Dinosaur']
Here's my code so far (not correct):
import re
new_string = re.findall(r'[^A-Z]', my_string)
Where am I going wrong? Thank you.