Regex Tester
Test and debug regular expressions with real-time matching and group highlighting.
//
Learn more
How to Use
Enter a regex pattern at the top and set flags (g for global, i for ignore case, m for multiline). Type or paste a test string below. Matches are highlighted live, and capture groups are listed separately.
Regex Flags
g (global) — find all matches. i — ignore case. m — multiline (^ and $ match line boundaries). s — dot matches newlines. u — Unicode. Combine as needed, e.g. gi.
Common Patterns
Email: [a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}. URL: https?://[^\s]+. Numbers: \d+. This tool uses the JavaScript regex engine in your browser.