To extract emails from a text file, open it with the Notepad++ text editor and apply the instructions above using a regular expression, marking all emails, selecting only emails, and copying them.