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())