Email regex

Here are some common email address regular expressions (regex) patterns:

Simple Email Regex

^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$

This regex pattern matches most common email addresses. It allows:

More Advanced Email Regex

^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}\.[a-zA-Z]{2,}$

This regex pattern is similar to the previous one, but it also allows for multiple top-level domains (e.g., .com.uk).

Email Regex with Internationalized Domain Names (IDNs)

^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u01B4\u01CA-\u01CC\u01D0-\u01D4\u01D6-\u01D8\u01F0-\u01F4\u01F6-\u01F8\u01FC-\u01FE\u02C0-\u02C1\u02C6-\u02C8\u02CA-\u02CB\u02CE-\u02D2\u02D8-\u02DA\u02DC-\u02DF\u0384-\u038A\u038C-\u038E\u0390-\u03A1\u03A3-\u03A9\u03AB-\u03C9\u03CA-\u03CE\u03D0-\u03D4\u03D6-\u03D8\u03FA-\u03FF\u0400-\u0406\u0408-\u040B\u040E-\u0412\u0415\u0417-\u042F\u0430-\u0431\u0433-\u0436\u0438-\u044F\u0450-\u0459\u045A-\u045E\u0460-\u0461\u0463-\u0464\u0467-\u0481\u048A-\u048D\u0490-\u0499\u04A0-\u04A4\u04A6-\u04A8\u04AC-\u04AE\u04B0-\u04B1\u04B3-\u04B9\u04BA-\u04BE\u04C0-\u04C4\u04C7-\u04C8\u04CB-\u04CC\u04D0-\u04D1\u04D3-\u04D4\u04D6-\u04D8\u04DA-\u04DC\u04DE-\u04DF\u04E0-\u04E5\u04E7-\u04E8\u04EA-\u04EC\u04EE-\u04EF\u04F0-\u04F5\u04F7-\u04F8\u04FA-\u04FC\u04FE-\u04FF]+@[a-zA-Z0-9.-\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u01B4\u01CA-\u01CC\u01D0-\u01D4\u01D6-\u01D8\u01F0-\u01F4\u01F6-\u01F8\u01FC-\u01FE\u02C0-\u02C1\u02C6-\u02C8\u02CA-\u02CB\u02CE-\u02D2\u02D8-\u02DA\u02DC-\u02DF\u0384-\u038A\u038C-\u038E\u0390-\u03A1\u03A3-\u03A9\u03AB-\u03C9\u03CA-\u03CE\u03D0-\u03D4\u03D6-\u03D8\u03FA-\u03FF\u0400-\u0406\u0408-\u040B\u040E-\u0412\u0415\u0417-\u042F\u0430-\u0431\u0433-\u0436\u0438-\u044F\u0450-\u0459\u045A-\u045E\u0460-\u0461\u0463-\u0464\u0467-\u0481\u048A-\u048D\u0490-\u0499\u04A0-\u04A4\u04A6-\u04A8\u04AC-\u04AE\u04B0-\u04B1\u04B3-\u04B9\u04BA-\u04BE\u04C0-\u04C4\u04C7-\u04C8\u04CB-\u04CC\u04D0-\u04D1\u04D3-\u04D4\u04D6-\u04D8\u04DA-\u04DC\u04DE-\u04DF\u04E0-\u04E5\u04E7-\u04E8\u04EA-\u04EC\u04EE-\u04EF\u04F0-\u04F5\u04F7-\u04F8\u04FA-\u04FC\u04FE-\u04FF]+.[a-zA-Z]{2,}$

This regex pattern allows for internationalized domain names (IDNs) and is more permissive than the previous patterns.

Note: These regex patterns are not foolproof and may not match all valid email addresses. Email addresses can be complex and may contain characters that are not allowed by these patterns. Additionally, these patterns do not validate the email address's syntax or whether the email address actually exists.