Skip to main content

Learn Regular Expressions

A short, free course on regular expressions in JavaScript, taught step by step. This is freeCodeCamp content hosted on Scrimba, so the instruction style differs from the platform's in-house courses.

Quick answer

Learn Regular Expressions is a free, intermediate course: about 46 minutes across 37 lessons, produced by freeCodeCamp and hosted on Scrimba. It walks through matching patterns in JavaScript one concept at a time. It is a focused utility skill rather than a standalone career course, so think of it as filling a gap, not as a stage in a learning journey.

Is it worth your time?

It is free and short, so the cost is under an hour. Regex is one of those skills that pays back many times its learning cost: once you can read and write patterns, you stop fumbling through string parsing, validation, and search-and-replace. For that, 46 minutes is a good trade.

The honest caveat is that this is freeCodeCamp material on the Scrimba player, not a native Scrimba production. The interactive editing that defines Scrimba's own courses is less central here. It is also narrow by design: it teaches regex and nothing else, so do not expect surrounding JavaScript context.

What you'll learn

You learn to build and read regular expressions in JavaScript: literal matches, character classes, quantifiers, anchors, groups, and the common string methods that apply patterns. The course moves through these in small steps, so by the end you can write a pattern for a real validation or extraction task rather than copying one off the internet.

Who it's for, and who should skip it

It fits anyone who already writes JavaScript and keeps avoiding regex because it looks like line noise. An hour here removes that block. It is also a fine add-on for learners on a backend or full-stack track who want the skill in their pocket.

Skip it if you have never written JavaScript, since the examples assume you can read code. Skip it too if you want a deep, language-agnostic treatment of regex theory; this is a practical, JavaScript-focused primer.

Prerequisites

Basic JavaScript: you should be comfortable with strings and calling methods on them. No prior regex knowledge is assumed.

Where it fits

This course appears on both the Backend Developer Path and the Fullstack Developer Path as a short utility module. It is the kind of thing you slot in between larger courses rather than build a study block around.

Free or Pro

The course itself is free, with no subscription required to start or finish it. Scrimba Pro is a separate decision that unlocks the structured career paths, the coding challenges, the private Discord, and certificates. For this short course you never have to pay. See current plans if you later want the path structure around it.

Strengths and limits

What it does well: it is free, it is short, and it teaches a genuinely useful skill that transfers to almost every language. The step-by-step pacing suits a topic that intimidates people.

Where it is limited: it is freeCodeCamp content rather than a native Scrimba course, so the interactive feel is lighter, and it is deliberately narrow. It teaches regex in JavaScript and stops there.

Start Learn Regular Expressions for free (opens in a new tab)