Regex Tester
Test and debug regular expressions with live pattern matching, capture groups, and replace mode. Perfect for developers and data analysts.
Regular Expression Pattern
Enter your regex pattern and configure flags
Test String
Enter the text you want to test against your pattern
Replace Mode
Test string replacement with your pattern
Why Use Our Regex Tester?
Live Matching
See matches highlighted in real-time as you type your pattern and test string.
Capture Groups
View all captured groups for each match with their values and positions.
Replace Mode
Test string replacement with support for $1, $2 group references.
Common Regex Patterns
Email Address
Matches standard email addresses
[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}URL
Matches HTTP and HTTPS URLs
https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\bPhone Number (US)
Matches US phone numbers in various formats
\(?\d{3}\)?[\s.-]?\d{3}[\s.-]?\d{4}Date (YYYY-MM-DD)
Matches dates in ISO format
\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])IPv4 Address
Matches valid IPv4 addresses
\b(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\bHex Color Code
Matches hex color codes like #fff or #ff00aa
#[0-9a-fA-F]{3,6}\bHow It Works
Enter Pattern
Type your regex pattern or select from common patterns.
Configure Flags
Enable global, case-insensitive, multiline, and other flags.
Test String
Enter test text and see matches highlighted in real-time.
View Results
Inspect matches, capture groups, and test replacements.
Your Privacy is Protected
This tool runs entirely in your browser using JavaScript's native RegExp. Your patterns and test strings are processed locally and never sent to any server. What you test stays on your device.
Want more productivity tools?
Sign up for Txtpipe to access AI-powered task management, location-based reminders, and more.
No credit card required