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.
- 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
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- 01
Type the pattern, then paste the text below it.
- 02
Set flags — g for all matches, i for case-insensitive.
- 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.
| Input | fmtText |
|---|---|
| Output | TEXT |
| Batch | One at a time |
| Per-file limit | — |
| Processing | Your browser |
| Account | Not required |