Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PYTHON Write a function called email_search that returns a regex patterns using re.search or re.findall and REGEX (i.e. . ^ $ * + ? {

PYTHON

Write a function called email_search that returns a regex patterns using re.search or re.findall and REGEX (i.e. . ^ $ * + ? { } [ ] \ | ( ) a-zA-Z, 0-9, etc) to match all contents like email id and domain, except the @, in a typical email address,

In other words, the regex should capture everything left to the @ symbol and right to the @ symbol. For email id (i.e. the part left to the @ symbol), content before and after period should be captured. NOTE the domain (i.e. after the @) should be outputted together.

Look at the examples:

>>> re.search (email_search ( ), chegg.study@chemail.net' ).groups( ) >>> (chegg, study, chemail.net')

Make sure to consider other emails like

chegg.01234@get.imail.net >>> ('chegg', '01234', 'get.imail.net')

CHEgg.stuDY@imail.net >>>('CHEgg', 'stuDY', 'imail.net')

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Security

Authors: Alfred Basta, Melissa Zgola

1st Edition

1435453905, 978-1435453906

More Books

Students also viewed these Databases questions

Question

=+ Who are the buyers/users of the products abroad?

Answered: 1 week ago

Question

3 How the market system answers four fundamental questions.

Answered: 1 week ago