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 tutorials๐ Read the articleOpen in YouTube
Duration
12:06
Published
February 10, 2026
Added to Codegiz
March 15, 2026