Regex Tester

Test regular expressions against sample text. See all matches with capture groups highlighted.

Matches

How to Use

Enter your regex pattern and flags, paste test text, and click 'Run Tool'. All matches and capture groups will be displayed.

Frequently Asked Questions

Common flags: g (global - find all matches), i (case-insensitive), m (multiline - ^ and $ match line boundaries), s (dotAll - . matches newlines).

Use parentheses in your pattern to create capture groups. The tool displays each match with its captured groups listed separately.

The tool uses JavaScript's RegExp engine, which supports most common regex features including lookaheads, named groups, and Unicode escapes.