Regex Tester

Test regular expressions with real-time matching and highlighting

//g

How to Use Regex Tester

Test and debug regular expressions with real-time match highlighting. See capture groups, test multiple flags, and validate your patterns instantly.

  1. 1

    Enter your regex pattern

    Type your regular expression in the pattern field. The tool uses JavaScript's native RegExp engine.

  2. 2

    Set flags

    Toggle flags like g (global), i (case-insensitive), m (multiline) to change matching behavior.

  3. 3

    Add test strings

    Paste or type your test text below. Matches are highlighted in real-time as you type.

  4. 4

    Inspect matches

    View all matches with their positions and capture group values in the results panel.

Frequently Asked Questions

What is a regular expression?

A regular expression (regex) is a pattern used to match character combinations in strings, widely used for text search, validation, and manipulation.

How do I test my regex?

Enter your regex pattern in the top field, your test string below, and matches will be highlighted in real-time.

What flags are supported?

This tool supports g (global), i (case-insensitive), m (multiline), s (dotAll), and u (unicode) flags.

Does it show capture groups?

Yes, all capture groups and their values are displayed for each match.

Is this tool free?

Yes, completely free with no signup required.

Related Tools