Menu
Coddy logo textTech

Finding Email Addresses

Lesson 25 of 28 in Coddy's RegEx in Python course.

challenge icon

Challenge

Easy

Write 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 here

All lessons in RegEx in Python