Validationflags: g

Email Address Validation

Match and validate email addresses in the standard user@domain.tld format.

Try it in RegexPro

Pattern

regexJavaScript
/[a-zA-Z0-9._%+\-]+@[a-zA-Z0-9.\-]+\.[a-zA-Z]{2,}/g

Raw 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.com

Matches

  • user@example.com

Input

hello.world+tag@sub.domain.org

Matches

  • hello.world+tag@sub.domain.org

Input

invalid-email

No match

Common use cases

  • Form input validation
  • Extracting emails from plain text
  • Filtering and de-duplicating contact lists
  • Log file analysis for email activity
All patternsTest this pattern live →