Regular Expressions - search, findall, match & groups (Python Beginner Lesson #26)
7views
0012:06
T
Taught by Celeste AI - AI Coding Coach
View on YouTubeDescription
Learn regular expressions in Python! 🔍
In this lesson, you will learn:
✅ The re module for pattern matching
✅ re.search() to find patterns anywhere in text
✅ re.match() to check the start of a string
✅ re.findall() to extract all matches
✅ Raw strings (r"...") to keep backslashes literal
✅ Metacharacters: \d, \w, \s, dot, caret, dollar
✅ Character classes [a-z] and negation [^0-9]
✅ Quantifiers: *, +, ?, {n}, {n,m}
✅ Capturing groups () and named groups
✅ re.sub() for substitution and re.compile() for reuse
✅ Mini Project: Text Processor (email validation, phone extraction, log parsing, text cleanup)
🕐 Timestamps:
0:00 - Introduction
0:22 - Regex Basics Explained
0:49 - Regex Basics Demo
3:32 - Patterns & Groups Explained
3:59 - Patterns & Groups Demo
6:59 - Text Processor Explained
7:26 - Text Processor Demo
10:35 - Recap
11:10 - End
💻 Source Code: https://github.com/GoCelesteAI/python_regular_expressions
🔗 Previous: Lesson 25 - Context Managers
🔗 Next: Lesson 27 - Virtual Environments
#Python #PythonTutorial #LearnPython #Programming #RegularExpressions #Regex #PatternMatching #PythonBasics
Back to tutorialsOpen in YouTube
Duration
12:06
Published
February 10, 2026
Added to Codegiz
March 15, 2026