Sitemap

Python RegEx Explained with Examples

1 min readMar 20, 2023

--

In this Python Regular Expressions tutorial, you will learn Python’s RegEx (Regular Expressions) module in detail with practical examples.

Press enter or click to view image in full size

Here are some important topics:

1. What are Regular Expressions.

2. RE module methods:

search()
match()
findall()
finditer()
sub()
compile()
split()

3. Writing regular expression patterns using:

Repetitions
Non Greedy Repetitions
Character Sets
Character Ranges
Escape Codes
Anchoring
Flags
Groups and Named Groups

All these are explained with lots of code examples.

What you’ll learn:

Get Ritu Singh’s stories in your inbox

Join Medium for free to get updates from this writer.

Complete understanding of Regular Expressions and how to use RE module in Python programming.

Are there any course requirements or prerequisites?

A Windows PC or Apple Mac with OSX.
Some basic programming skills in Python.

Who this course is for:

Professional Programmers.
IT Team Leaders / Managers.

Related Videos:

Regular Expression in Python(Regex): A Beginners Guide

How to Import a Regular Expression in Python

3 Ways to Use RegEx Inside a Lambda Function in Python

--

--