Email regex pattern

Copy and test a JavaScript regex for common email-style addresses, with examples, limitations, and a one-click link to the regex tester.

Email regex pattern

Validate whole value

Use anchors to check whether the complete value matches.

Regex: ^[^\s@]+@[^\s@]+\.[^\s@]+$

Flags: iu

Search in text

Find matching fragments inside a larger block of text.

Regex: [^\s@]+@[^\s@]+\.[^\s@]+

Flags: giu

Examples that match

  • name@example.com
  • first.last@company.co.uk

Examples that do not match

  • name@example
  • @example.com

Limitations

This pattern finds common email-style addresses. It is not a complete RFC 5322 validator.