From ef6053eb064ce0b9344259ac7adafc5bf9ca1412 Mon Sep 17 00:00:00 2001 From: 008pranjal <44477944+008pranjal@users.noreply.github.com> Date: Sun, 28 Oct 2018 22:35:25 -0700 Subject: [PATCH] Update telemail.py --- telemail.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telemail.py b/telemail.py index bf1be90..737167c 100644 --- a/telemail.py +++ b/telemail.py @@ -1,5 +1,5 @@ import pyperclip, re - +#using regex-regular expression phoneRegex=re.compile(r'''((\d{3} | \(\d{3}\))?(\s|-|\.)?(\d{3})(\s|-|\.)(\d{4})(\s*(ext|x|ext.)\s*(\d{2,5}))?)''', re.VERBOSE) emailRegex=re.compile(r'''([a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+(\.[a-zA-Z]{2,4}))''', re.VERBOSE) text=str(pyperclip.paste())