Matches are highlighted in real-time as you type your regex pattern. See exactly what your expression captures.
View all capture groups and their matched values displayed clearly below the test string.
Toggle g (global), i (case-insensitive), m (multiline), and s (dotall) flags with one click.
See the exact index position and length of each match for precise debugging.
This tester uses JavaScript's built-in RegExp engine, which is the standard for web development and Node.js applications.
Enter your email regex pattern like /^[\w.-]+@[\w.-]+\.[a-z]{2,}$/i in the pattern field, then type a test email in the test string area to see live matching.
By default, . does not match newlines. Enable the s (dotall) flag to make . match any character including newlines, or use m (multiline) to make ^ and $ match line boundaries.