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 c
Quantifiers
* 0 or more
+ 1 or more
? 0 or 1
{n} exactly n
{n,m} n to m
Anchors
^ start
$ end
\b word boundary
Groups
(abc) capturing
(?:abc) non-capturing
\1 backreference

Common 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.