T-11 · Developer tools

Regex Tester

Test JavaScript regular expressions against sample text with live matches, capture groups and flags. Protected against runaway patterns.

  • Runs in your browser
  • Nothing uploaded
  • No account
Instrument T-11 · Regex TesterLocal

About this instrument

What it does

Enter a pattern, choose flags and paste test text to see every match with its position and capture groups. Patterns run in a background worker with a time limit, so a catastrophic pattern cannot freeze the page.

How to use it

  1. Type your regular expression.
  2. Toggle flags (i, m, s, u).
  3. Review matches and groups below the text.

FAQ

Common questions.

01Why was my pattern stopped?

It probably backtracks catastrophically, for example nested quantifiers like (a+)+. Make the pattern more specific.

02Can I use named groups?

Yes: (?<name>…) works and is shown in the results.