Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Task description: Use regular expression to implement a function which accepts a passed string and check if it is a valid email address. A program

image text in transcribed
Task description: Use regular expression to implement a function which accepts a passed string and check if it is a valid email address. A program accepts user's input and calls the email validation function. If the email is valid, print out the email, username and host. (Please note: letters, dot, and hyphen are considered as valid characters in an email address, besides of one '@'.) (Sample output as shown in the following figure is for demonstration purposes only.) Please input your email address: test Not a valid email. Please input your email address: shang . gao@deakin. edu. au email: shang. gao@deakin. edu. au , username: shang. gao , host: deakin. edu. au

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

Students also viewed these Programming questions

Question

Below is my question

Answered: 1 week ago