Regular Expression Tester
Test and validate regular expressions with real-time matching
Regular Expression Pattern
//g
Test String
Results
0 Matches
Quick Reference
Character Classes
.- Any character\d- Digit (0-9)\w- Word character\s- Whitespace[abc]- Character set[^abc]- Negated set
Quantifiers
*- Zero or more+- One or more?- Zero or one{n}- Exactly n{n,m}- Between n and m{n,}- n or more
Anchors & Groups
^- Start of string$- End of string()- Capture group(?:)- Non-capture group|- Alternation\- Escape character