Loading...

Regex Tester

Test and debug regular expressions with real-time matching and highlighting.

Matches Found: 0
  • Real-time regex pattern testing
  • Support for all JavaScript regex flags (g, i, m, s)
  • Visual highlighting of matches
  • Detailed match information with positions
  • Error detection and validation
  1. Enter your regular expression pattern
  2. Select the appropriate flags (global, case-insensitive, etc.)
  3. Paste or type your test text
  4. Click "Test Regex" to see matches highlighted
  5. Review match details including positions and captured groups

This tool uses JavaScript's built-in RegExp engine, which follows the ECMAScript standard for regular expressions.

g (global): Find all matches, not just the first.
i (case-insensitive): Ignore case when matching.
m (multiline): ^ and $ match line starts/ends.
s (dotAll): . matches newline characters.