Skip to main content
Loading page…
Python Mastery
Chapter 11
Lesson 1 of 4
Regex Foundations
Contents
Notes
Tutor
Note
Bridge: The re Module
Loading activity…
Previous
1 / 11
Continue
Contents
Notes
Discussion
Tutor
32 min
11 activities
0 of 11 done
In this lesson
1
Bridge: The re Module
2
What Is a Regular Expression?
3
First Patterns: re.search and re.match
4
findall, finditer, and Groups
5
Gotcha: findall With a Single Group Returns Strings, Not Tuples
6
re.sub and re.split
7
Extract All Email Addresses
8
Validate a Date String
9
re.match vs re.search
10
Quantifier and Anchor Quiz
11
Match Each Pattern to Its Description
Objectives
Learner can construct patterns using literals, character classes, quantifiers, and anchors
Learner can use re.search, re.match, re.fullmatch, re.findall, re.finditer, re.sub, and re.split correctly
Learner can explain why raw strings matter for regex patterns
Learner can capture groups and extract sub-matches
Chapter 11 · Regular Expressions & Text Processing
Regex Foundations
Advanced Regex
Real Text Processing
Unicode, Bytes & Encoding
Previous: CSV & Tabular Data
Next: Advanced Regex