Why is re.search(".@.", email) returning valid for "a@bc" and "aa@b" ?
To my understanding "." is used to represent any single character except a newline. So given that when a user enters "a@bc" or "aa@b" I was expecting the program to return invalid since there are two characters before and after @.
Can you point me what is wrong with my above assumption ? Thanks in advance !