Skip to content

Course

JavaScript Regular Expressions

A comprehensive series covering modern JavaScript regular expressions from the ground up.

11 lessons

  1. 01

    Introduction

    What IS a regular expression, and why should you care?

  2. 02

    Plain text

    Matching plain text with regular expressions is simpler than you think.

  3. 03

    Quantifiers

    Quantifiers let you match repeating patterns without writing them out by hand.

  4. 04

    Character Classes

    Character classes let you match sets of characters using square brackets.

  5. 05

    Shorthand Unicode Properties

    What IS a regular expression, and why should you care?

  6. 06

    Capturing Groups

    Capturing groups let you group parts of a pattern together and reference them later.

  7. 07

    Lookaheads and LookBehinds

    Lookaheads and lookbehinds are zero-width assertions that check what's before or after a position without consuming characters.

  8. 08

    Backreferences

    Backreferences let you match a second occurrence of text captured by an earlier group.

  9. 09

    Word Boundaries

    Word boundaries help you match whole words rather than substrings.

  10. 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. 11

    Set Operations

    Set operations are a modern addition to JavaScript regex, enabled by the V flag.