⚡ Tooldeck

🔍 Regex Tester & Debugger

Write a pattern, paste some text and see every match, capture group and replacement as you type.

#MatchIndexGroups

How to use the Regex Tester

  1. Type a regular expression (without slashes) and its flags, for example g for all matches and i for case-insensitive.
  2. Paste the text to test. Matches are highlighted instantly and listed with their capture groups.
  3. Enter a replacement to preview the result of String.replace.

Frequently asked questions

Which regex flavor does this use?

Your browser's JavaScript (ECMAScript) engine, the same one used by Node.js and front-end code. Lookbehind, named groups (?<name>…) and Unicode property escapes \p{…} with the u flag are supported.

What do the flags mean?

g finds all matches, i ignores case, m makes ^ and $ match at line breaks, s lets . match newlines, u enables full Unicode, d adds match indices and y matches only at lastIndex (sticky).

Why does my pattern freeze the page?

Some patterns, like nested quantifiers such as (a+)+, can take exponential time on certain inputs (catastrophic backtracking). Simplify the pattern or make quantifiers possessive-like with more specific character classes.

Is my text sent anywhere?

No. Everything runs locally in your browser.

More free tools