๐Ÿ”ค

Regex Pattern Tester โ€” 15+ Common Patterns ยท Email ยท URL ยท Phone

Real-time ยท 26 features ยท AI explain ยท Unit tests ยท Diff mode ยท JS/Python/PHP ยท 100% browser

REGEX PATTERN
//g
FLAGS
TEST TEXT
0 matches
 
Ctrl+L ClearCtrl+S DownloadCtrl+Shift+C Copy matchesP PinF Fullscreen
๐Ÿ’ก

Instantly test common regex patterns for email addresses, URLs, phone numbers, dates, IP addresses, UUIDs, Indian PAN cards, PIN codes, JWT tokens, and more. Click any pattern to load it instantly.

What is a Regular Expression?

A regular expression (regex) is a sequence of characters that defines a search pattern. Used for validation, parsing, text manipulation, and data extraction in virtually every programming language โ€” JavaScript, Python, PHP, Java, and more.

How to Use This Regex Tester

Type your regex pattern in the input field. Matches highlight in real-time in the test text panel. Use the flags (g/i/m/s/u/y) to modify matching behavior. Switch between Test, Replace, Unit Test, Diff, and Multi-string modes using the tabs above.

Frequently Asked Questions

What patterns are included in the library?

Email, URL (HTTP/HTTPS), Indian mobile number (+91), Date (ISO format), IPv4, IPv6, UUID, Hex color, JWT token, URL slug, Indian PAN card, Indian PIN code, Credit card (Visa/Mastercard/Amex), Integer, and HTML tags.

How do I use the Indian phone number regex?

The pattern /(\+91[\-\s]?)?[6-9]\d{9}/ matches Indian mobile numbers. Indian numbers start with 6-9 and are 10 digits. +91 prefix is optional. It matches +91-9876543210, +919876543210, and 9876543210.

Is the email regex RFC 5322 compliant?

The included email regex is a practical pattern that covers 99% of real-world emails. A fully RFC 5322 compliant regex is extremely complex and usually overkill. For production, also send a verification email.