Regex Tester
Test and debug regular expressions with real-time match highlighting.
Regular Expression
Enter your regex pattern and test string
//g
Test String
Enter text to test against your pattern
Results
0 matches found
Highlighted matches will appear here
Regex Quick Reference
Character Classes
.- Any character except newline\d- Digit (0-9)\w- Word character (a-z, A-Z, 0-9, _)\s- Whitespace[abc]- Any of a, b, or c[^abc]- Not a, b, or c
Quantifiers
*- 0 or more+- 1 or more?- 0 or 1{n}- Exactly n{n,}- n or more{n,m}- Between n and m
Anchors
^- Start of string$- End of string\b- Word boundary
Groups
(abc)- Capture group(?:abc)- Non-capture groupa|b- Alternation (a or b)
Related Tools
Convert text between uppercase, lowercase, title case, camelCase, and more
Format, validate, and minify JSON with syntax highlighting