Regex Tester

Test regular expressions against input strings with real-time matching, capture groups, and detailed results.

Enter a regular expression
Enter test string
Enter a regex and test string to see matches
0 matches

Regex Reference

🔤 Character Classes

. - Any character
\d - Digit (0-9)
\w - Word character
\s - Whitespace
[abc] - Character set
[^abc] - Negated set

🔢 Quantifiers

* - 0 or more
+ - 1 or more
? - 0 or 1
{}n} - Exactly n
{}n,m} - n to m
{}n,} - n or more

📍 Anchors

^ - Start of string
$ - End of string
\b - Word boundary
\B - Non-word boundary
(?=...) - Lookahead
(?!...) - Negative lookahead

🏷️ Flags

g - Global search
i - Case insensitive
m - Multiline
s - Single line
u - Unicode
y - Sticky