Online regular expression tester

Flags
Contato: ana@exemplo.com e bruno@teste.org
Matches: 2

Type a regular expression and a test string to see highlighted matches, captured groups and the match count, all in real time, in your browser.

What it is for

The regex tester runs a regular expression against a text and shows the results in real time. Type the pattern, paste the text and see the matches highlighted as you edit.

Beyond marking what matched, the tool displays the captured groups, the match count and the active flags, which helps you understand exactly what the pattern is doing.

What it shows

  • The matches highlighted directly in the test text.
  • The groups captured by each match.
  • The total count of matches found.
  • The active flags, such as global, case-insensitive and multiline.

When to use

  • Develop and debug a regular expression before using it in code.
  • Validate formats like email, phone, dates or codes.
  • Understand why a pattern is not matching as expected.
  • Test capture groups to extract parts of a text.

Privacy

The test runs in real time in your browser, without sending the pattern or the text to servers. You can experiment with real data without it leaving your computer.

Frequently asked questions

Can I use flags like global and case-insensitive?
Yes. You enable the expression flags and the tool shows how they affect the matches in real time.
Does it show captured groups?
Yes. Beyond the matches, the tool displays the captured groups of each one, useful to extract specific parts of the text.
Are the pattern and text sent to any server?
No. The test happens entirely in your browser.