Running on your device · 0 bytes uploaded

Regex Tester

Test a regular expression against your own text — the browser's own engine, every match listed, runs in a disposable worker.

Pattern

Valid flags: d g i m s u v y — no duplicates, and u/v are mutually exclusive.

27 / 1000 chars
Test text
74 bytes / 1,000,000 byte ceiling
Matches

No run yet.

Matches appear as you type
Rules this tool follows
  • The browser’s own RegExp runs the pattern — no engine substitution, so behavior (including lookbehind, named groups, v-mode set notation) is exactly what your page ships.
  • A native RegExp cannot be interrupted, so every run executes in a disposable worker: a pattern that backtracks catastrophically is terminated at the 5-second deadline and reported — never a frozen tab, never a silent retry in the page. Environments without workers refuse to run it at all.
  • Matches list the way matchAll does: the global flag is implied for listing, and zero-length matches advance by one so they are all reported, never dropped.
  • Caps, stated before you hit them: 1,000 listed matches (the TRUE total always shows), 32 listed groups per match, 1,000,000 test-text bytes, 1,000 pattern characters.
Nothing in yet

Paste, drop, or type to begin. Everything stays on this device.

the d flag adds [start, end) spans to every group