Regex Tester
Test and validate regular expressions in real-time
Match Results
0 matches
Enter a regex pattern and test text to see matches
Quick Reference
Character Classes
\d digit\w word char\s whitespace. any char[abc] a, b, or c[^abc] not a, b, or cQuantifiers
* 0 or more+ 1 or more? 0 or 1{n} exactly n{n,m} n to mAnchors
^ start$ end\b word boundaryGroups
(abc) capturing(?:abc) non-capturing\1 backreferenceCommon Patterns
Tip: This tool uses JavaScript's native RegExp. All matches are highlighted in real-time. Use the flags to modify matching behavior. Click on common patterns to quickly test them.