Validationflags: g
Email Address Validation
Match and validate email addresses in the standard user@domain.tld format.
Try it in RegexProPattern
regexJavaScript
/[a-zA-Z0-9._%+\-]+@[a-zA-Z0-9.\-]+\.[a-zA-Z]{2,}/gRaw source: [a-zA-Z0-9._%+\-]+@[a-zA-Z0-9.\-]+\.[a-zA-Z]{2,}
How it works
Matches a local part (letters, digits, dots, underscores, percent, plus, hyphen) followed by @, a domain name, a dot, and a TLD of at least 2 characters.
Examples
Input
user@example.comMatches
user@example.com
Input
hello.world+tag@sub.domain.orgMatches
hello.world+tag@sub.domain.org
Input
invalid-emailNo match
—Common use cases
- Form input validation
- Extracting emails from plain text
- Filtering and de-duplicating contact lists
- Log file analysis for email activity