Tool workspace
Supported JavaScript flags: g, i, m, s, u, y.
Run a JavaScript regular expression against pasted text and inspect matches, indexes, groups, and syntax errors without sending the pattern or sample away from the browser.
Supported JavaScript flags: g, i, m, s, u, y.
Run a JavaScript regular expression against pasted text and inspect matches, indexes, groups, and syntax errors without sending the pattern or sample away from the browser.
Test `^INV-\d{4}$` with the multiline flag against invoice IDs and confirm that malformed IDs do not match.
JavaScript RegExp in the current browser.
Pathological backtracking patterns can be expensive; keep test input small and review complex expressions carefully.
Reproducible examples
Run these examples in the workspace above and compare the result with the documented output.
Patterns use the current browser's JavaScript RegExp implementation and flags; global zero-length matches are advanced carefully and input length is bounded.
Inputs are a JavaScript pattern, flags, and sample text. Output lists matches and positions or a syntax error.
Release checks cover valid and invalid patterns, flags, captures, no-match results, global matches, empty input, and result clearing.
The input and result stay in this browser session. ZZP Box does not upload or store the values entered in this tool.
Choose the next tool by the operation you need, then review that page's stated input and limits.