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

Learn all the fundamentals of using regular expressions (regexes) to match patterns in programming. The course covers character sets, quantifiers, metacharacters, character classes, groups, lookahead & lookbehind assertions, and more. The teaching method includes guided exercises, practice exercises, and a detailed video timeline. This course is intended for individuals interested in mastering regular expressions for programming purposes.

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.