Skip to content
FizzKit

Regex Tester

Write a JavaScript regex and see matches highlighted directly inside the test text as you type, with capture groups, named-group tables and match offsets. Explain the pattern token by token, look up syntax in the cheat sheet, save named patterns, export matches as CSV or JSON, and copy equivalent code for JavaScript, Python, PHP, Go and Java. Supports all flags including d (indices) and v (unicode sets), with a time budget that stops catastrophic backtracking from freezing the page.

Runs locally in your browser
//
Test string
256 chars · matches are highlighted in place; zero-width matches show as a thin caret
Matches (2)
#RangeMatchGroups
09–24[email protected]—
1103–132[email protected]—
Matches
2
Unique
2
Groups
0
Flags
gi
Test string
256 chars
Valid
yes

How to use Regex Tester

  1. 1Type the pattern between the slashes and toggle flags (g i m s u v y d) — matches highlight in the test text immediately.
  2. 2Use the Match tab for the match/group table, Replace with $1 / $<name> substitutions, or Split.
  3. 3Open Explain to read the pattern token by token, or the Cheat sheet for syntax and flag reference.
  4. 4Save patterns you reuse; export matches as CSV/JSON; grab ready-to-run code from the Code tab.

About Regex Tester

Write a JavaScript regex and see matches highlighted directly inside the test text as you type, with capture groups, named-group tables and match offsets. Explain the pattern token by token, look up syntax in the cheat sheet, save named patterns, export matches as CSV or JSON, and copy equivalent code for JavaScript, Python, PHP, Go and Java. Supports all flags including d (indices) and v (unicode sets), with a time budget that stops catastrophic backtracking from freezing the page.

Regex Tester is part of FizzKit — a collection of focused developer and ad-tech tools. Because everything runs locally, it works offline once loaded and never exposes your data to a remote server.

Frequently asked questions

JavaScript (ECMAScript), run by your browser. The JavaScript vs PCRE panel lists the differences (no possessive quantifiers, atomic groups, \A/\z, POSIX classes or recursion; lookbehind is supported).