🎯 Regex Tester

Test regular expressions with real-time matching and capture groups.

/ /
g i m s
Enter a pattern and test string
Highlighted matches will appear here...

📋 Match Details

#MatchIndexGroups
No matches yet

Regex Cheatsheet

.Any character except newline
\dDigit (0-9)
\wWord character (a-z, 0-9, _)
\sWhitespace
^Start of string/line
$End of string/line
*0 or more
+1 or more
?0 or 1 (optional)
{n,m}Between n and m times
[abc]Character class
(abc)Capture group
a|bAlternation (or)
\bWord boundary

Common regex patterns

Email: [\w.-]+@[\w.-]+\.\w+
URL: https?://[\w.-]+(?:/[\w./-]*)?
IP: \b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b
Phone: \(?\d{3}\)?[-.\s]?\d{3}[-.\s]?\d{4}