Capitalized Words
Lesson 28 of 28 in Coddy's RegEx in Python course.
Challenge
MediumWrite a function named extract_capitalized_words that takes a text string as input and returns a list of all words that start with a capital letter.
Try it yourself
import re
def extract_capitalized_words(text):
# Write code hereAll lessons in RegEx in Python
1Introduction
Introduction7Final Challenges
Extracting HashtagsFinding Email AddressesValid Phone NumbersFinding DatesCapitalized Words