Hi ,
We are using this to validate the email during setup.
>>> re.match('^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$', "support@domains.syste")
>>> re.match('^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$', "support@domains.syst")
<_sre.SRE_Match object at 0x7fd0988c77e8>
It is working, but domains.systems is not valid domain name
last part of domain should be at least 4 characters
Thanks and Regards
Mohit Mali