Toolnova
Developer Tools

Regex Tester

Test and debug regular expressions instantly with live match highlighting, capture group inspection, and flag toggles — all running privately in your browser.

  • 100% free
  • No signup
  • Private — in your browser
  • No watermark
Live tool · runs in your browser
Highlights

Why use Regex Tester?

  • Live highlighting of all matches as you type — no button press needed
  • Capture group table shows each group value per match at a glance
  • Toggle g, i, m, s flags individually with clear visual state
  • Safe execution guard prevents catastrophic backtracking from hanging the page
Overview

About Regex Tester

The Regex Tester gives you a real-time feedback loop for building and debugging regular expressions. Type a pattern, toggle flags like global, case-insensitive, multiline and dotAll, then paste any test string to see every match highlighted in colour. Capture groups are extracted into a clear table so you can verify each group individually without counting parentheses.

Because everything runs entirely in your browser, no test data ever leaves your device — making this safe to use with sensitive content like email addresses, API keys or personal information. The tool wraps regex execution in a safety guard to prevent catastrophic backtracking from freezing your browser tab.

Step by step

How to use Regex Tester

  1. 1

    Enter your pattern

    Type your regular expression in the pattern field. The slash delimiters are shown automatically so you only enter the pattern itself.

  2. 2

    Choose your flags

    Click the flag buttons to toggle global (g), case-insensitive (i), multiline (m) and dotAll (s) modes. Active flags are highlighted in blue.

  3. 3

    Inspect matches and groups

    Paste or type your test string. All matches are highlighted immediately and capture groups appear in the table below.

FAQ

Frequently asked questions

What regex flavour does this tool use?

It uses the JavaScript RegExp engine built into your browser, which supports most common PCRE-style features including lookaheads, lookbehinds, named capture groups and Unicode property escapes.

Why does my pattern cause the page to freeze?

Certain patterns with nested quantifiers can cause catastrophic backtracking. The Regex Tester includes a safety limit of 500 match iterations to prevent this. If your pattern triggers it, try simplifying possessive or nested quantifiers.

How do I match across multiple lines?

Enable the m (multiline) flag to make ^ and $ match the start and end of each line, and the s (dotAll) flag to make . match newline characters as well.

Can I use named capture groups?

Yes. JavaScript supports named groups with the (?<name>...) syntax. The capture group table currently shows groups by number; you can use the named group syntax in your pattern and copy it for use in code.

Is my test data kept private?

Absolutely. The tool runs entirely in your browser with no server involved, so your patterns and test strings are never transmitted anywhere.

How do I copy the final expression to paste into code?

The full expression including slashes and flags is shown at the bottom of the tool. Click "Copy Expression" to copy it to your clipboard.

Related developer tools

See all developer tools

Browse more free tools

Explore every category in our toolbox.