Regex search and raw strings
The re module searches text for patterns, and raw strings make regex patterns easier to write.
3 minutes. No account needed.
Lessons in Regular expressions12 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