A complete library of common Regular Expressions. Copy tested patterns for validation, parsing, and data extraction.
This regex validates standard email addresses. It ensures there is text before and after the @ symbol, and requires a valid domain extension (like .com or .org).
This regex enforces a strong password policy: at least 8 characters, one uppercase letter, one lowercase letter, one number, and one special character.
This regex matches standard 10-digit US phone numbers. It allows optional parentheses around the area code, and optional dashes, dots, or spaces as separators.
This regex validates HTTP and HTTPS URLs. It ensures the URL starts with a protocol (optional), has a valid domain name, and allows subdirectories.
This regex ensures a username is between 3 and 16 characters long, and only contains letters (a-z, A-Z), numbers (0-9), and underscores (_).
This regex validates the structure of a date in YYYY-MM-DD format. It checks for 4 digits, a dash, 2 digits, a dash, and 2 digits.
This regex validates IPv4 addresses. It ensures that each of the four numbers is between 0 and 255, separated by dots.
This simple regex matches any HTML tag, allowing you to replace it with an empty string to extract plain text.
This regex matches one or more whitespace characters. Replacing it with an empty string removes all spaces from the text.
This regex matches standard CSS hex color codes. It allows an optional # symbol, followed by either 6 hex characters or 3 shorthand hex characters.
Describe your requirement in plain English and our AI will write the regex for you.