Test and debug regular expressions in your browser
Regular expressions are one of the most powerful tools in a developer's toolkit, but they're also notoriously easy to get wrong. This tester gives you a live, interactive sandbox: type a pattern, toggle the flags you need, paste in some text, and watch every match light up. Capture groups and named groups show up in the match details panel so you can verify your extraction logic before shipping it to production.
How to use the tester
Enter your pattern in the input — no delimiters needed, just the expression itself. Toggle g to find all matches, i for case-insensitive matching, and m when you need anchors to apply per line. The test string area accepts any text you want to scan. Matches are highlighted in real time as you type, and the match count appears just above the preview. Use the quick-reference table on the side to drop common tokens like \d, \w, or \b into your pattern with a click.
Common patterns to try
Start with \b\w+\b to match every word, or \d+ to find numbers. Use [\w.+-]+@[\w-]+\.[\w.-]+ to spot email-like strings. Named groups such as (?<year>\d{4})-(?<month>\d{2}) make complex extractions readable. Whenever a pattern fails, the syntax error message points directly at the issue.
Private by design
Everything happens locally. The browser's RegExp engine compiles and runs your pattern, and the page never sends your text or expression to any server. That makes this tool safe for log fragments, sample customer data, or any sensitive content you want to experiment with.