Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Complete Regular Expressions Tutorial - With Exercises for Practice

Keith Galli via YouTube

Overview

Google, IBM & Meta Certificates – 40% Off
One Coursera Plus subscription covers most Professional Certificates on Coursera.
Unlock All Certificates
This beginner course introduces regular expressions for matching text patterns. It covers core syntax, character classes, quantifiers, groups, escaping, lookahead and lookbehind assertions, with exercises involving sentences, dates, passwords, and repeated words.

Syllabus

- Video overview & topics covered
- Basic regex syntax building up an intuition
- Character Sets Overview [A-Za-z0-9]
- Quantifiers Guide *, +, ?, {3,5}
- Guided Exercise: Find all words that don't use vowels
- Helpful cheat sheet to remember regex syntax in the real-world
- Matching words/patterns of a specific length {3,5}
- OR operator overview
- Guided Exercise: Match valid sentences starts with capital letter, ends with period
- Character classes overview \w, \b, \d, \s
- Escaping Characters
- Practice Exercise #1: Write a regular expression to match meme text format
- Practice Exercise #2: Write a regular expression to match a specific date format
- Groups overview
- Lookahead & Lookbehind Assertions
- Practice Exercise #3: Detect if same word pops up multiple times in a sentence
- Practice Exercise #4: Password matching with rules
- Some final recommendations! additional practice, chatgpt, etc.

Taught by

Keith Galli

Reviews

Start your review of Complete Regular Expressions Tutorial - With Exercises for Practice

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.