Course Content

Python Exercise 11: Regex Email Extractor | Python Tutorials For Absolute Beginners In Hindi #96

Problem Statement:-

The task you have to perform is “Email Extractor.”

Suppose you are a student and want to get an internship. You have to contact your professors and some companies to get an internship. For that, you need their email so that you can contact them. 

The task you have to do is to extract the email from text data using Regex Expressions

When you go to a website and click on the contact section, by pressing CTRL+A, all the content of the website gets added to the clipboard. Paste the data in your python file or in a string. Extract an email from the above data, and after extracting email, write it into a file with a new line character. Your text file after writing data should look similar to this:

abc123@gmail.com

cdf456@gmail.com

 

You are advised to participate in solving this problem. This task will help you become a good problem solver and will help you accept the challenge and to acquire new skills.

Have you solved this task? If yes, then it is time to check your solution. The solution is discussed in tutorial#100.

 

Code as described/written in the video


# Email Collector
str ='''
2
'''
# email1
# email2
# email3

Be the first person to comment!

Comments(0)

Resources

No downloadable resources for this video. If you think you need anything, please post it in the QnA!

Course Announcements

Any Course related announcements will be posted here