Regex Tester

Test a regular expression against a string and see every match, with capture groups.

How to Use the Regex Tester

  1. Enter your regex pattern (without the surrounding slashes) into "Regex Pattern".
  2. Set "Flags" (e.g. g for all matches, gi for global case-insensitive).
  3. Paste your "Test String" and click "Test" to see every match with its position and capture groups.

Frequently Asked Questions

It uses JavaScript's native regular expression engine (the same one used by browsers), so syntax follows standard JavaScript regex rules.

Common flags are g (global — find all matches, not just the first), i (case-insensitive), m (multiline, so ^ and $ match line boundaries), and s (dot matches newlines).

Without the global (g) flag, JavaScript's regex engine only reports the first match in the string — add 'g' to the flags field to see every match.

Yes, it's completely free and requires no sign-up.
No ratings yet — be the first!
Rate this calculator:

Related Calculators