Regex Patterns
Ready-to-use regex patterns for common validation and text extraction tasks. Each pattern includes the regex itself, example matches, and edge cases to avoid.
Validation
8 patterns
Email Address Validation
Validate email addresses with a standard pattern covering most common formats.
URL Pattern
Match HTTP and HTTPS URLs with optional port, path, query string, and fragment.
Phone Number (US/International)
Match US and international phone numbers with optional country code and separators.
Date (YYYY-MM-DD)
Match dates in ISO 8601 YYYY-MM-DD format with basic month and day validation.
Credit Card Number (Generic)
Match generic credit card numbers in grouped or continuous 16-digit format.
UUID v4
Match UUID v4 identifiers with the standard 8-4-4-4-12 hex format and version check.
Base64 Encoded String
Match standard Base64 encoded strings with optional padding.
Time (HH:MM 24-hour)
Match times in 24-hour HH:MM format with valid hour and minute ranges.
network
1 patterns
security
1 patterns
design
1 patterns
text
4 patterns
URL Slug
Match URL-friendly slugs with lowercase letters, digits, and hyphens.
HTML Tag
Match HTML tags including opening, closing, and self-closing tags with attributes.
Whitespace Normalization
Match leading, trailing, and consecutive internal whitespace for normalization.
File Extension
Extract file extensions from filenames and paths.