Regex Tester

Test JavaScript regular expressions, inspect matches, capture groups, and indexes instantly.

Advertisement

Regex Tester

Test JavaScript regular expressions against sample text, inspect match groups and positions.

Pattern & Test
Flags
/g
Matches
Results appear here.
Enter a pattern and test text, then click Test Regex.
Advertisement

What is a Regex Tester?

A Regex Tester lets you write a regular expression and test it against real text. It shows which parts matched, where each match starts, and which capture groups were extracted. This is useful for validating input patterns, parsing logs, extracting IDs, and debugging search rules.

How to Use Regex Tester

  1. Enter a regular expression pattern without the surrounding slashes.
  2. Choose flags such as g, i, m, s, u, or y.
  3. Paste the text you want to test.
  4. Review matches, indexes, and capture groups in the output panel.
  5. Adjust the pattern until it matches exactly what you need.

Frequently Asked Questions

Advertisement