Question: 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

 Task description: Use regular expression to implement a function which accepts

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!