ToolBoxAlllocal toolkit
All tools

Developer Tools

Regex Tester

Test a JavaScript regular expression against your text: every match with its index, numbered capture groups, and a live replacement preview.

Developer ToolsFreeLocal
Input
fmtText
Output
TEXT
Runs
Your browser

shortAnswer

ToolBoxAll's Regex Tester runs your pattern against test text using the browser's own ECMAScript RegExp engine, listing every match with its index, numbered and named capture groups, and an optional live replacement preview. Results match what JavaScript will actually do.

keyFact
Editable flags: g, i, m, s, u, y
keyFact
Replacement supports $1 and $<name>
keyFact
Capped at 2,000 matches per run

reviewedOn 2026-11-20

Runs in your browser · nothing is sent
0 characters
0 characters

Output

Output appears here as you run the tool.

Tip: this tool runs entirely in your browser — your input never leaves the device.

How it works

three steps
  1. 01

    Type the pattern, then paste the text below it.

  2. 02

    Set flags — g for all matches, i for case-insensitive.

  3. 03

    Fill the replacement field to preview the rewritten text.

About this tool

The engine is the browser's own RegExp, so what you see here is exactly what JavaScript will do — no lookalike dialect. Flags are editable (g, i, m, s, u, y), zero-width matches are handled without an infinite loop, and named groups are shown alongside numbered ones. The replacement supports $1 / $<name> just like String.replace.

Regex Tester · Technical specifications
InputfmtText
OutputTEXT
BatchOne at a time
Per-file limit—
ProcessingYour browser
AccountNot required