I am trying to check whether the email is valid format in django. I have used syntax re.match("[^@]+@[^@]+\.[^@]+", email)
for checking email is valid format. The syntax is correct but it's only for checking addresses like xxx.yyy@gmail.com
. But I need to check addresses like xxx.yyy@yahoo.co.in
. How can I do that in validation? Please help me to do that. I need to check those two things in a single regex.
Thanks in advance.