into writing code but more often than notit' best to take step back and consider the bigger picture recommend first drawing up high-level plan for what your program needs to do don' think about the actual code yet-you can worry about that later right nowstick to broad strokes for exampleyour phone and email address extractor will need to do the following get the text off the clipboard find all phone numbers and email addresses in the text paste them onto the clipboard now you can start thinking about how this might work in code the code will need to do the following use the pyperclip module to copy and paste strings create two regexesone for matching phone numbers and the other for matching email addresses find all matchesnot just the first matchof both regexes neatly format the matched strings into single string to paste display some kind of message if no matches were found in the text this list is like road map for the project as you write the codeyou can focus on each of these steps separately each step is fairly manageable and expressed in terms of things you already know how to do in python step create regex for phone numbers firstyou have to create regular expression to search for phone numbers create new fileenter the followingand save it as phoneandemail py#python phoneandemail py finds phone numbers and email addresses on the clipboard import pyperclipre phoneregex re compile( '''(\ { }|\(\ { }\))(\ |-|)(\ { }(\ |-|(\ { }(\ *(ext| |ext )\ *(\ { , })))'''re verbosearea code separator first digits separator last digits extension todocreate email regex todofind matches in clipboard text todocopy results to the clipboard