Finding Email Addresses
Lesson 25 of 28 in Coddy's RegEx in Python course.
Challenge
EasyWrite a function named find_emails that takes a text string as input and returns a list of all email addresses. An email address consists of word characters, followed by an @ symbol, followed by more word characters, a dot, and a domain.
Try it yourself
import re
def find_emails(text):
# Write code hereAll lessons in RegEx in Python
1Introduction
Introduction7Final Challenges
Extracting HashtagsFinding Email AddressesValid Phone NumbersFinding DatesCapitalized Words