Python Programming - Console Input/Output - Discussion

Discussion Forum : Console Input/Output - General Questions (Q.No. 37)
37.
How can you check if a string is a valid email address?
check_email(str)
str.isemail()
validate_email(str)
re.match(r'^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$', str)
Answer: Option
Explanation:
To check if a string is a valid email address, you can use a regular expression pattern with re.match().
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.