DiscoveryVIP / Learning labsAll guides ↗
FIND THE PATTERN. UNDERSTAND THE MATCH.

Turn text into
something useful.

Find, extract, validate and transform. Learn regular expressions through real experiments, visible matches and a growing collection of small wins.

12 guided lessons · 8 challenges · Real JavaScript regex

Try a pattern. See exactly what it finds.

Browser-local • no text uploads
Flags

Regex runs in an isolated worker with a 1.5-second timeout. Results show up to 300 matches. Zero-length matches appear as ◆. Indices use UTF-16 code units.

Quick reference

\d digit · \s whitespace · [abc] character choice · + one or more · * zero or more · ? optional · {2,4} repetition range · (...) capture · | alternative

Flags and syntax here follow your browser's JavaScript engine. Other languages may differ.

Your match inspector

Run your pattern to begin.

Match positions and captures
No results yet.

Replacement preview

No results yet.

Reusable JavaScript