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 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
Get step-by-step solutions from verified subject matter experts
