ToolSnips
Log in Sign up
Log in Sign up

Regular Expression Tester

Test and validate regular expressions with real-time pattern matching, highlighting, and common regex examples

Regular Expression Pattern
Regex Pattern
Test String
Common Patterns
Email addresses
/\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}\b/
Phone numbers (XXX-XXX-XXXX)
/\b\d{3}-\d{3}-\d{4}\b/
URLs
/https?:\/\/[^\s]+/
IP addresses
/\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b/
All uppercase words
/\b[A-Z]{2,}\b/
All words
/\b\w+\b/
Numbers
/\d+/
Each line (multiline)
/^.+$/
Results
Matches Found: 2
Hello World! This is a test string. hello there!
Match 1 Position: 0-5
"Hello"
Match 2 Position: 36-41
"hello"
Regex Tips & Guide
📝
Basic Syntax

Use /pattern/flags format. Common flags: i (case-insensitive), g (global), m (multiline)

🎯
Common Patterns

\d = digits, \w = word chars, \s = whitespace, . = any char, + = one or more, * = zero or more

🔍
Testing Tips

Start simple and build complexity. Use the common patterns as starting points for your own expressions.

⚠️
Performance

Avoid overly complex patterns. Use specific patterns instead of broad ones for better performance.

Search for tools

Find calculators, converters, and utilities quickly

to select
esc to close