Match Email Addresses:
This regex matches valid email addresses.
/\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,7}\b/ Find the syntax you need, copy an example, and get back to work.
No matching entries. Try another name or keyword.
This regex matches valid email addresses.
/\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,7}\b/ This regex matches dates in the format YYYY-MM-DD.
/\d{4}-\d{2}-\d{2}/ This regex matches HTML tags, both opening and closing, as well as self-closing tags.
/<([A-Za-z][A-Za-z0-9]*)\b[^>]*>.*?<\/\1>|<.*? \/>/ This regex matches valid IPv4 addresses.
/\b(?:\d{1,3}\.){3}\d{1,3}\b/ This regex matches URLs starting with "http://" or "https://" or "ftp://".
/(https?|ftp):\/\/[^\s/$.?#].[^\s]* This regex matches US phone numbers in various formats.
/\b\d{3}[-.\s]?\d{3}[-.\s]?\d{4}\b/ This regex matches Social Security Numbers in the format 123-45-6789.
/^\d{3}-\d{2}-\d{4}$/ This regex matches credit card numbers.
/\b(?:\d[ -]*?){13,16}\b/ This regex matches hexadecimal color codes, with or without the leading #.
/^#?([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/ This regex matches strings containing only alphabetic characters.
/^[A-Za-z]+$/ This regex matches strings containing only numeric characters.
/^\d+$/ This regex matches strings containing only alphanumeric characters.
/^[A-Za-z0-9]+$/ This regex matches any whitespace character (space, tab, newline).
/\s/ This regex matches any non-whitespace character.
/\S/ This regex matches any word character (alphanumeric + underscore).
/\w/ This regex matches any non-word character.
/\W/ This regex matches one or more occurrences of the pattern.
/pattern+/ This regex matches zero or more occurrences of the pattern.
/pattern*/ This regex matches exactly 'n' occurrences of the pattern.
/pattern{n}/ This regex matches a range of 'm' to 'n' occurrences of the pattern.
/pattern{m,n}/