What I would like to achieve, is to write a protection against people entering an email address in a string. It is important to not only detect valid addresses, but to also built a protection against entries like the following:
my email @ domain dot com
myemail at domain.com
myemail_at_domain_com
myemailatdomaindotcom
etc.
However, things like "@hello" should still be possible or "com-pany".
I'm thinking there should be a list of regular expressions to check against, covering the most known ways of writing an email address (or something that people will understand to be an email address).
This challenge must have been solved a thousand times... :) Isn't there a lib of expressions to check against?