정규표현식 패턴 라이브러리
실무 개발 환경에서 철저히 검증된 정규표현식 패턴 모음. 클릭 한 번으로 검사기에서 즉시 테스트할 수 있습니다.
Email & Contact
Email Address
Matches standard email addresses
[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}Phone (US)
Matches US phone number formats
\(?\d{3}\)?[-.\s]?\d{3}[-.\s]?\d{4}Phone (International)
Matches international phone formats
\+?\d{1,4}[-.\s]?\(?\d{1,3}\)?[-.\s]?\d{1,4}[-.\s]?\d{1,9}Web & URLs
URL (HTTP/HTTPS)
Matches HTTP and HTTPS URLs
https?://[\w.-]+(?:\.[a-zA-Z]{2,})(?:/[^\s]*)?Domain Name
Matches domain names
(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}IP Address (IPv4)
Validates IPv4 addresses
\b(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\bSlug (URL-friendly)
Matches URL slugs
^[a-z0-9]+(?:-[a-z0-9]+)*$Dates & Times
Date (YYYY-MM-DD)
ISO 8601 date format
\d{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12]\d|3[01])Date (MM/DD/YYYY)
US date format
(?:0[1-9]|1[0-2])/(?:0[1-9]|[12]\d|3[01])/\d{4}Date (DD/MM/YYYY)
European date format
(?:0[1-9]|1[0-2])/(?:0[1-9]|[12]\d|3[01])/\d{4}Time (24h)
24-hour time format
(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d)?Time (12h)
12-hour time with AM/PM
(?:0?[1-9]|1[0-2]):[0-5]\d\s?(?:AM|PM|am|pm)Numbers & Finance
Integer
Matches positive and negative integers
-?\d+Decimal Number
Matches decimal numbers
-?\d+\.\d+Currency (USD)
US dollar amounts
\$\d{1,3}(?:,\d{3})*(?:\.\d{2})?Credit Card
Matches Visa, MC, Amex, Discover
\b(?:4\d{3}|5[1-5]\d{2}|3[47]\d{2}|6(?:011|5\d{2}))[-\s]?\d{4}[-\s]?\d{4}[-\s]?\d{4}\bPercentage
Matches percentage values
\d+(?:\.\d+)?%Security & Validation
Strong Password
Min 8 chars, upper, lower, digit, special
^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$Hex Color
Matches hex color codes
#(?:[0-9a-fA-F]{3}){1,2}\bUUID v4
Matches UUID version 4
[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}JWT Token
Matches JWT tokens
eyJ[A-Za-z0-9_-]*\.eyJ[A-Za-z0-9_-]*\.[A-Za-z0-9_-]*File & System
File Extension
Matches file extensions
\.[a-zA-Z0-9]{1,10}$File Path (Unix)
Unix file paths
(?:/[\w.-]+)+File Path (Windows)
Windows file paths
[A-Z]:\\(?:[\w.-]+\\)*[\w.-]+Semantic Version
SemVer version strings
\d+\.\d+\.\d+(?:-[\w.]+)?(?:\+[\w.]+)?Text Processing
HTML Tags
Matches opening and closing HTML tags
<\/?[a-zA-Z][a-zA-Z0-9]*(?:\s[^>]*)?\/?>Markdown Links
Matches [text](url) markdown links
\[([^\]]+)\]\(([^)]+)\)Quoted String
Matches single or double quoted strings
"[^"]*"|'[^']*'Whitespace Trim
Leading and trailing whitespace
^\s+|\s+$Duplicate Words
Finds consecutive duplicate words
\b(\w+)\s+\1\bEmpty Lines
Matches blank lines
^\s*$Programming
Variable Name
Valid JS/Python/Java variable names
[a-zA-Z_$][a-zA-Z0-9_$]*CSS Class
CSS class selectors
\.[a-zA-Z_-][a-zA-Z0-9_-]*Single-line Comment
C-style single-line comments
\/\/.*$Multi-line Comment
C-style block comments
\/\*[\s\S]*?\*\/Don't see the pattern you need?
Build Your Own →