You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Write a pattern to match sentence endings: sentence_endingssentence_endings=r"[.?!]"# Split my_string on sentence endings and print the resultprint(re.split(sentence_endings,my_string))
# Find all capitalized words in my_string and print the resultcapitalized_words=r"[A-Z]\w+"print(re.findall(capitalized_words,my_string))
# Split my_string on spaces and print the resultspaces=r"\s+"print(re.split(spaces, my_string))
# Find all digits in my_string and print the resultdigits=r"\d+"print(re.findall(digits, my_string))