Regex Tester
Test regular expressions with live highlighting — and learn as you go
/
/
Result with Highlights
Match Details
Group :
Click any pattern to load it into the tester.
Click any token to insert it into your pattern.
Beginner Tips
- Start with the g flag to find all matches, not just the first.
- Use i flag to ignore uppercase/lowercase differences.
\d= any digit,\w= any letter/digit/underscore,\s= any whitespace.- Wrap parts in
( )to create capture groups — shown in Match Details above. - Use
^and$to match the start and end of the whole string. - Escape special characters with
\— e.g.\.matches a literal dot.