+ 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
4 Respostas
+ 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_.]+@.+(\.).+"
+ 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
+ 1
thank you all