Regular expressions
Use Python regular expressions to find, extract, and replace text patterns.
We build you a study plan for each day. It fits your time and starts at this chapter.
Build my plan
Start free, no account needed.
Lessons
12 lessons · · 41 min- 1Regex search and raw strings3 min
- 2Search, match, and fullmatch3 min
- 3Regex character classes3 min
- 4Regex quantifiers3 min
- 5Regex anchors and word boundaries3 min
- 6Regex capturing groups4 min
- 7Regex alternation and grouping3 min
- 8Finding multiple regex matches4 min
- 9Regex substitution3 min
- 10Regex metacharacter escaping3 min
- 11Greedy and non-greedy matching3 min
- 12Challenge: Regular expressions6 min
What you'll learn
- Write patterns using character classes, quantifiers, and boundaries
- Find and extract matching text with Python's re module
- Replace matched text and check pattern behavior
Part of Python
Chapter 5 of 25 · BeginnerBeginner25
Start from this chapter
You get a plan for each day, from this chapter to the end of the course.
Build my plan
Start free, no account needed. See prices