/
Regex Tester
Cheatsheet
Pattern
/
/
g
i
m
s
Test String
Matches:
0
The quick brown fox jumps over the lazy dog. Email: user@example.com, admin@test.org Phone: (555) 123-4567, 555-987-6543 IP: 192.168.1.1, 10.0.0.255 Date: 2024-01-15, 12/25/2023 URL: https://example.com/path?query=value Price: $19.99, $1,234.56 Hex: #ff6b6b, #6c63ff, #51cf66
Match Results
History
Clear
Character Classes
.
Any character
\d
Digit [0-9]
\D
Non-digit
\w
Word char [a-zA-Z0-9_]
\W
Non-word char
\s
Whitespace
\S
Non-whitespace
Quantifiers
*
0 or more
+
1 or more
?
0 or 1
{n}
Exactly n
{n,m}
Between n and m
Anchors & Groups
^
Start of string
$
End of string
\b
Word boundary
(abc)
Capture group
(?:abc)
Non-capture group
(?=abc)
Lookahead
(?<=abc)
Lookbehind
Common Patterns
Email
Match emails
URL
Match URLs
Phone
US phone numbers
IPv4
IP addresses
Hex
Hex color codes
Price
USD prices
⚡
Built with GenMB