From 23a0431e853d46bb0646dfbb160a447999686d43 Mon Sep 17 00:00:00 2001 From: Tibor Martini Date: Sat, 12 Aug 2017 02:46:13 +0200 Subject: [PATCH] Update email regex to match gTLDs (#32) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c4e8f02..c73218c 100644 --- a/README.md +++ b/README.md @@ -478,7 +478,7 @@ line. And because of `m` flag now regular expression engine matches pattern at t * *Alpha-numeric characters*: `^[a-zA-Z0-9]*$` * *Alpha-numeric characters with spaces*: `^[a-zA-Z0-9 ]*$` * *Password*: `^(?=^.{6,}$)((?=.*[A-Za-z0-9])(?=.*[A-Z])(?=.*[a-z]))^.*$` -* *email*: `^([a-zA-Z0-9._%-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4})*$` +* *email*: `^([a-zA-Z0-9._%-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,})*$` * *IPv4 address*: `^((?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))*$` * *Lowercase letters only*: `^([a-z])*$` * *Uppercase letters only*: `^([A-Z])*$`