Advanced Regex Tester

Professional regular expression testing tool with real-time matching and code generation

Regular Expression Pattern

Test String

Results

0 Matches
0 Groups
0ms Execution Time
Enter a pattern and click Test to see results

Code Generation

Pattern Library

Common Patterns

Email Address
[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}
URL
https?://(www\.)?[-a-zA-Z0-9@:%._\+~#=]...
Phone Number (US)
(?:\+?1[-.]?)?\(?\d{3}\)?[-.]?\d{3}[-.]?\d{4}
Strong Password (8+ chars)
(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])...
IPv4 Address
\b(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}...

Date & Time

Date (YYYY-MM-DD)
\b\d{4}-\d{2}-\d{2}\b
Time (HH:MM or HH:MM:SS)
\b([0-1]?[0-9]|2[0-3]):[0-5][0-9](:[0-5][0-9])?\b

Text Processing

Capitalized Words
\b[A-Z][a-z]+\b
Hex Color Code
#[a-fA-F0-9]{6}\b
Numbers (Int/Float)
\d+\.?\d*

Advanced

Dollar Amount (Lookbehind)
(?<=\$)\d+(?:\.\d{2})?
Words (Not "test")
\b(?!test\b)\w+

Cheat Sheet

.Any character
\dDigit (0-9)
\wWord char (a-zA-Z0-9_)
\sWhitespace
^Start of string
$End of string
*0 or more
+1 or more
?0 or 1
{n}Exactly n times
[abc]Character set
(x)Capture group

Support This Free Tool

Every coffee helps keep the servers running. Every book sale funds the next tool I'm dreaming up. You're not just supporting a site — you're helping me build what developers actually need.

500K+ users
200+ tools
100% private
Privacy Guarantee: Private keys you enter or generate are never stored on our servers. All tools are served over HTTPS.