Course
JavaScript Regular Expressions
A comprehensive series covering modern JavaScript regular expressions from the ground up.
11 lessons
- 01
Introduction
What IS a regular expression, and why should you care?
- 02
Plain text
Matching plain text with regular expressions is simpler than you think.
- 03
Quantifiers
Quantifiers let you match repeating patterns without writing them out by hand.
- 04
Character Classes
Character classes let you match sets of characters using square brackets.
- 05
Shorthand Unicode Properties
What IS a regular expression, and why should you care?
- 06
Capturing Groups
Capturing groups let you group parts of a pattern together and reference them later.
- 07
Lookaheads and LookBehinds
Lookaheads and lookbehinds are zero-width assertions that check what's before or after a position without consuming characters.
- 08
Backreferences
Backreferences let you match a second occurrence of text captured by an earlier group.
- 09
Word Boundaries
Word boundaries help you match whole words rather than substrings.
- 10
Line Anchors
Line anchors let you match the beginning or end of a line, not just the beginning or end of the entire string.
- 11
Set Operations
Set operations are a modern addition to JavaScript regex, enabled by the V flag.