Regex Tester
Test regular expressions with live match highlighting and capture group inspection, entirely in your browser.
New to regex? Read our guide →alice@example.com@ 9bob@dev.org@ 30billing@company.co.uk@ 44Flags: g, i, m, s explained
Combining flags like gi is common for case-insensitive global search.
Capture groups and named groups
Wrap part of a pattern in parentheses to create a capture group: (\d+) captures digits. The captured text appears in $1, $2, etc.
Named groups (?<year>\d{4}) give the capture a label accessible via the match.groups object. Non-capturing groups (?:...) group for quantifiers without capturing. This tool shows all captured groups below each match.
Common regex patterns for developers
These are starting points; production validation usually needs stricter patterns or a dedicated library.
Frequently asked questions
This tool runs your pattern through JavaScript's native RegExp engine, the same one your browser uses. Syntax tied to other engines, PCRE-style possessive quantifiers and atomic groups, or Go RE2's lack of backreferences, won't behave the same way here. Treat this as a JavaScript-behavior check, not a universal validator across languages.