Regex Tester
Test regular expressions with pattern matching, replacement, and common pattern library.
Regex Options
Common Patterns
Test String
Matches
Enter a regex pattern and test string to see matches
Regex Quick Reference
Basic Patterns
. - Any character
\d - Digit (0-9)
\w - Word character
\s - Whitespace
^ - Start of line
$ - End of line
Quantifiers
* - 0 or more
+ - 1 or more
? - 0 or 1
{n} - Exactly n
{n,} - n or more
{n,m} - Between n and m
Groups & Flags
() - Capture group
(?:) - Non-capture group
g - Global flag
i - Case insensitive
m - Multiline
s - Dot matches newline