🔎 Regex Tester
Test regular expressions in real time. See matches highlighted, groups listed, and errors explained.
Regular Expression
//
Flags
Quick Patterns
Test String
Highlighted Matches
🔎
Enter a test string above to see matches
Match Details
Enter a pattern and test string
📖 Quick Reference
Character Classes
.Any character except newline\dDigit [0-9]\wWord char [a-zA-Z0-9_]\sWhitespace[abc]a, b, or c[^abc]Not a, b, or cQuantifiers
*0 or more+1 or more?0 or 1 (optional){n}Exactly n times{n,m}Between n and m times*?Lazy (fewest chars)Anchors & Boundaries
^Start of string/line$End of string/line\bWord boundary\BNon-word boundaryGroups
(abc)Capturing group(?:abc)Non-capturing groupa|ba or b(?=abc)Lookahead(?!abc)Negative lookahead