You'll start your journey into regular expressions by learning the core concepts. You will write patterns to find text, use special characters to define rules, and learn how to match specific parts of a string. This course builds the essential foundation for all your future text-processing tasks in JavaScript.
Overview
Syllabus
- Unit 1: Literals and Special Characters
- Find the Secret Agent Codename
- Matching Log Entries with the Dot Metacharacter
- Escaping the Dot to Match Literal Characters
- Matching Domain Names with Escaped Dots
- Unit 2: Regex Quantifiers in JavaScript
- Extract Product SKUs with the Plus Quantifier
- Match Image Files with Optional Characters
- Fix Tag Extraction with Flexible Spacing
- Security Log Pattern Scanner
- Unit 3: Character Classes in JavaScript
- Match All Vowels with Character Classes
- Extract 4-Digit Years with Character Classes and Quantifiers
- Debug Hashtag Extraction with Character Shorthands
- Extract Bracketed Content from Log Files
- Matching Number Pairs with Whitespace Shorthand
- Unit 4: Anchors and Boundaries
- Fix Social Media Handle Validation with Start Anchor
- Validate Log Entry Status Codes
- Debug Whole Word Matching with Word Boundaries
- Validate Exact API Endpoints with Anchors