🎯 Regex Tester

Test your regular expressions in real time

💡 How does this tool work?

This tool lets you test regular expressions against any text and see matches highlighted in real time.

  • Type your regex pattern and the test text — matches are highlighted instantly.
  • Toggle flags: g (global), i (case-insensitive), m (multiline), s (dotAll).
  • View capture groups for each match in the details panel below.
  • Each match can be copied individually for quick use.

Uses JavaScript's native RegExp engine — what you test here is exactly what runs in your code.

Pattern
//g
Test String
Result
Highlighted matches will appear here...