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

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Master the fundamentals of regular expressions in this comprehensive tutorial video. Explore essential concepts including character sets, quantifiers, metacharacters, character classes, groups, and lookahead/lookbehind assertions. Engage in practical exercises to reinforce your learning, such as finding words without vowels, matching specific date formats, and creating password validation rules. Gain valuable insights into regex syntax, pattern matching techniques, and real-world applications. By the end of this 1-hour 19-minute tutorial, develop the skills to effectively use regular expressions in your programming projects.

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.