I have the following regex for validating emails:
/^[_a-z0-9-]+(\.[_a-z0-9-]+)*(\+[a-z0-9-]+)?@[a-z0-9-]+(\.[a-z0-9-]+)*$/i
The only problem I see is that it allows emails without TLD, such as: example@domain
How can I fix this? Any other suggestion of improvement is also appreciated. Thank you!