From 05c6bd3b599906f1f36c175f061eaec934e708d7 Mon Sep 17 00:00:00 2001 From: mmc001 Date: Fri, 10 Sep 2021 20:17:13 +0700 Subject: [PATCH] Update VerifyEmailAddress.py Update regex for support any email language --- src/VerifyEmailAddress.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/VerifyEmailAddress.py b/src/VerifyEmailAddress.py index 07c350d..a03ac65 100644 --- a/src/VerifyEmailAddress.py +++ b/src/VerifyEmailAddress.py @@ -6,7 +6,7 @@ fromAddress = 'corn@bt.com' # Simple Regex for syntax checking -regex = '^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,})$' +regex = '^(([^<>()[\]\.,;:\s@\"]+(\.[^<>()[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$' # Email address to verify inputAddress = input('Please enter the emailAddress to verify:')