Regex Tester

Test and debug regular expressions with live match highlighting

//g
global

How to Use Regex Tester

  1. Enter your regular expression pattern in the pattern field.
  2. Toggle flags like g (global), i (case-insensitive), m (multiline) as needed.
  3. Paste the text you want to test in the test string area.
  4. Click Test Regex to see all matches highlighted with group details.

Key Features

  • Live Highlighting - Matched portions are highlighted directly in your test string.
  • Flag Toggles - Easily toggle global, insensitive, multiline, dotAll, and unicode flags.
  • Capture Groups - View capture group contents for each match.
  • Match List - See all matches with their index positions and copy all at once.

Frequently Asked Questions

What regex flavor does this use?

It uses JavaScript (ECMAScript) regular expression syntax.

Can I extract all matches?

Yes, enable the global (g) flag to find all matches and copy them all.

Related Tools