Regex Tester
Test regular expressions
This free online regex tester runs in your browser and is part of our Developer Tools collection.
Regex Tester
Test and debug regular expressions with real-time matching and highlighting.
Quick Reference:
\d- Any digit (0-9)\w- Word character (a-z, A-Z, 0-9, _)\s- Whitespace character.- Any character except newline+- One or more*- Zero or more?- Zero or one{n,m}- Between n and m times^- Start of string$- End of string
How to Use the Online Regex Tester
Type your regex pattern in the expression box (e.g. `^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$`).
Select modifier flags: Global (`g`), Case-Insensitive (`i`), Multiline (`m`), DotAll (`s`), or Unicode (`u`).
Paste sample log lines, emails, or text to evaluate into the test area.
Matches highlight with alternating colors in real time; captured groups ($1, $2) and index offsets appear in the match details table.
Frequently Asked Questions
Common questions about using this free online regex tester.
What does each regular expression flag do? ▾
How are capture groups and named capture groups displayed? ▾
Can this tester handle lookaheads and lookbehinds? ▾
Is there a built-in regex cheat sheet? ▾
More Developer Tools
Explore related tools in the same category to solve adjacent tasks faster.