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
- Enter your regular expression pattern
- Select the appropriate flags (global, case-insensitive, etc.)
- Paste or type your test text
- Click "Test Regex" to see matches highlighted
- 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.
i (case-insensitive): Ignore case when matching.
m (multiline): ^ and $ match line starts/ends.
s (dotAll): . matches newline characters.