Free Online Tools

How To Use Regex Tester

1

Enter your pattern

Type the regular expression you want to test.

2

Set flags and test text

Add flags like g or i, and paste your sample text.

3

Review the matches

See match count and highlighted matches directly in your text.

Frequently Asked Questions

1. What flags are supported?

Standard JavaScript regex flags are supported, including g (global), i (case-insensitive), m (multiline), and s (dot matches newline).

2. Why do I only get one match without the g flag?

Without the global flag, regex matching stops after the first match — add g to find every occurrence in your text.

3. Can I test capture groups?

Yes, named capture groups in your pattern are included in the match results.

Related Tools

What people are using

Real usage across 235 sessions this month