DEVELOPER & CODE · LOCAL WORKBENCH

Regex Tester

Test JavaScript regular expressions against sample text with match positions and groups.

DEVELOPER & CODE · LOCAL WORKBENCH · BROWSER WORKSPACE

Watch each match. Inspect the groups. Preview the replacement.

Test JavaScript regular expressions against sample text with match positions and groups.

01 · PATTERN AND FLAGSJAVASCRIPT REGEXP
Use $1, $2, $&, or $<name>. This previews the selected flags across the whole string.
Type a replacement to preview the result.
04 · LIVE MATCH REVIEW0 MATCHES
MATCHES0
CAPTURE GROUPS0
CHARACTERS MATCHED0
WORKER TIME<1 ms
HIGHLIGHTED IN CONTEXT

Contact sales@example.com or support@example.org. Old address: admin@legacy.net — no longer monitored. Not an email: just.some.text here

MATCHES AND CAPTURE GROUPS0 ROWS

A match list appears here as soon as the pattern finds text.

05 · PATTERNS FOR REAL TASKSLOAD A STARTING POINT

Each evaluation runs in a disposable Web Worker. The page terminates it after 250 ms so catastrophic backtracking cannot freeze the workbench. This uses JavaScript RegExp syntax; test patterns in the engine that will run them.

◎

Runs in this browser. Patterns and test text stay in this browser. Each evaluation runs in a disposable worker that is terminated if a pattern takes too long.

Back to the tool library ↗

Need a feature from the original version? Open the current ECECH tool

How this app works

Test JavaScript regular expressions against sample text with match positions and groups. Results update as you adjust inputs and stay in this browser.