Regex Tester

Test regular expressions with live matching, highlighting, and captured groups

//g

How to Use

  1. Enter your regex pattern.
  2. Select the flags you need (g, i, m).
  3. Enter your test string and matches will be highlighted in real time.

FAQ

What are regex flags?

Flags modify regex behavior: 'g' for global (find all matches), 'i' for case-insensitive, and 'm' for multiline (^ and $ match line boundaries).

Why is my regex not matching?

Common issues include forgetting to escape special characters (like . or *), not enabling the global flag, or incorrect character class usage.

Related Tools