Regex Tester

Test and debug regular expressions in real time. Matches are highlighted as you type. Supports flags g, i, m, and s. No server required.

Frequently Asked Questions

What regex flags are supported?+

This tester supports the g (global), i (case insensitive), m (multiline), and s (dotAll) flags — the same flags supported by JavaScript's RegExp.

What does the 'g' flag do?+

The global flag (g) finds all matches in the test string. Without it, only the first match is found.

What does the 'i' flag do?+

The case-insensitive flag (i) makes the pattern match uppercase and lowercase letters interchangeably.

Can I test capture groups?+

Yes. The match details section shows captured groups for each match. Use parentheses in your pattern to create capture groups, e.g. (\d+)-(\d+).

Related Tools