Regex Tester

Test regular expressions, inspect matches and capture groups, check offsets, use common flags, and preview replacement output.

Test Regular Expression

Reset

How to Use This Regex Tester

Enter a regex pattern without delimiters, choose flags, paste your test text, and run the tester to see all matches, capture groups, offsets, and replacement output.

  • Use i for case-insensitive matches.
  • Use m for multiline anchors.
  • Use s so dot matches newlines.
  • Use replacement text to preview substitutions.