Skip to main content
>_devtools

Regex Tester & Explainer

Test JavaScript regexes, inspect matches and captures, explain or diagram patterns, preview replacements, generate code, and run test cases.

What this does

Test JavaScript regular expressions and inspect matches, captures, replacements, and derived output. Choose a view for Match, Explain, Diagram, Replace, Code, Split, Extract, Format, Tests, or Benchmark.

Example

Pattern: (\w+)@(\w+\.\w+)
Text:    Contact ada@example.com today
Match:   ada@example.com · captures ada and example.com

Limits and behavior

  • Patterns use the browser's JavaScript regex flavor; potentially slow matching runs in a worker with a timeout.
  • Static backtracking warnings are heuristic and cannot prove a pattern is safe.