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
MATCHES0CAPTURE GROUPS0CHARACTERS MATCHED0WORKER 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.