+ 1

Hello, if i do r"[A-Za-z0-9]+@.+(\.).+" does it really validate all valid emails or are there any exception?

Regular expression Question(in python) https://code.sololearn.com/c0kAQjVQ9yB9/?ref=app

3rd Aug 2021, 11:36 PM
Jaspe Micael
4 Réponses
+ 5
bad.humans@email.com Fails if firstpart includes any symbol it fails You have to modify first part by adding missing symbols like dash and period [A-Za-z0-9_.]+@.+(\.).+"
4th Aug 2021, 12:04 AM
▬▬▬
▬▬▬ - avatar
+ 5
There are some other restrictions to a proper email address, for instance, the max length, certain characters which are not allowed to appear as the first or last character, characters which can only appear within quotes, etc. However, these are probably irrelevant to you if all you want is to look for email addresses in a list which already contains valid addresses. https://stackoverflow.com/questions/2049502/what-characters-are-allowed-in-an-email-address
4th Aug 2021, 1:35 AM
Hatsy Rei
Hatsy Rei - avatar
+ 1
thank you all
4th Aug 2021, 6:50 AM
Jaspe Micael