# Writing Regular Expressions

Discover the power of regular expressions and learn the basics of writing Regex.

#### TECHNOLOGIES

Core Python

#### WATCH TIME

43 minutes

## Lessons

#### Regular Expressions: Optional Matching and Findall()

Learn to match optional characters and find multiple instances of a pattern in Regex.

9 min

#### Regular Expressions: Regex Objects and Grouping

Understand what regular expressions are and start writing your own Regex.

11 min

#### Regular Expressions: Case-Insensitive Matching and Substitutions

Learn about matching characters when casing does not matter and substitutions in Regex.

7 min

#### Regular Expressions: Greedy and Non-Greedy Matching

Understand what greedy and non-greedy matching means and how to handle them in Regex.

7 min

#### Regular Expressions: Character Classes and the Caret/Dollar Characters

Learning about character classes and matching the first and last character positions of strings.

11 min

### Hey! I’m Avi, and I’ll teach you how to build!

I'm Avi, your new Python instructor and founder of The Codex.

Three years ago I was stuck. I wasn’t learning anything in my theory-filled CS classes, my friends took pictures of me sleeping in lecture, and I was questioning why I was even learning CS to begin with. I had ideas but I was clueless on execution.

After watching hours of webcasted YouTube videos, enrolling in course after course, and struggling to stay motivated, I finally obtained the skills to bring my ideas to life. I realized how lonely and gruesome this process was.

If you’re a student just like me, you know exactly what it’s like to be stuck in course hell. The best programmers of today learned by doing, not by reading syntax in a textbook.

Join The Codex. Become a creator.

## Savvy Students ❤️ The Codex

The Codex has helped hundreds of students find jobs and build their dream projects.

“CS classes at UW were overwhelming and full of theory. Through The Codex, I realized the power of Python programming, built _numerous projects for my resume_ and ultimately landed an internship at Amazon.“

Arjun Malhotra

University of Washington, 2022

SDE Internship, Amazon

## Ready to dive in?  Start learning today.
