Regex Generator
Common Regular Expression Patterns
Provides common regex patterns for email, phone, URL, etc. Test and copy patterns for your use.
🔤 What is Regex?
Regular Expression (Regex) is a pattern used to find or validate specific patterns in strings. Widely used for validating emails, phone numbers, URLs, etc.
📚 Regex Pattern List
| Type | Pattern | Example |
|---|---|---|
| ^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$ | [email protected] | |
| Phone (Korea) | ^(010|011|016|017|018|019)-?\d{3,4}-?\d{4}$ | 010-1234-5678 |
| URL | ^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)$ | https://example.com |
| IPv4 Address | ^((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]?)$ | 192.168.0.1 |
| Date (YYYY-MM-DD) | ^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])$ | 2026-01-30 |
| Time (HH:MM) | ^([01]\d|2[0-3]):([0-5]\d)$ | 14:30 |
💡 Regex Tips
^: Start of string
$: End of string
\d: Digit (0-9)
\w: Word character
+: One or more
*: Zero or more
?: Zero or one