Solving Real World Problems with Regular Expressions in Python

AVG Duration1h


Regular Expressions are a tool for searching and manipulating text. Most popular programming languages feature support for them and they are used widely across different disciplines. Regardless of whether you are a developer or engineer, being comfortable reading and writing regular expressions will benefit you.

They are a declarative way of specifying the desired structure of a piece of text. A regular expression can be used to extract information from a larger text, and to validate smaller pieces of text.

In this set of labs, you will use the Python programming language to learn the basics of how to use a regular expression and you'll learn about the different character classes available for matching different types of characters.

Learning Objectives

Upon completion of these beginner-level labs, you will be able to:

  • Implement a Regular Expression using Python
  • Use different features of Regular Expressions to match subsets of a piece of text
  • Recognize when Regular Expressions are a good solution and when something else should be preferred

Intended Audience

  • Developers
  • Engineers


Familiarity with the Python programming language will be beneficial but is not required.


Your certificate for this learning path

Training Content

Hands-on Lab - Beginner - 30m
Constructing Regular Expression Character Classes
In this hands-on lab, you will learn about the character classes and quantifiers elements of Regular Expressions, and use them to match patterns in text.
Hands-on Lab - Beginner - 30m
Working with Special Characters and Anchors in Regular Expressions
In this hands-on lab, you will work with regular expressions, learning how to use quantifiers, anchors, and capture groups to match patterns in text.
Hands-on Lab - Beginner - 1h
Using Regular Expressions Effectively in the Real World
Regular expressions are a powerful tool for searching and manipulating text. In this hands-on lab you will learn how to use them effectively in real-world scenarios.
Hands-on Lab Challenge - Beginner - 50m
Regular Expressions Challenge
Put your knowledge of Regular Expressions to the test in this hands-on lab challenge.
About the Author
Learning paths3

Andrew is a Labs Developer with previous experience in the Internet Service Provider, Audio Streaming, and CryptoCurrency industries. He has also been a DevOps Engineer and enjoys working with CI/CD and Kubernetes.

He holds multiple AWS certifications including Solutions Architect Associate and Professional.