Validate e-mail with a regular expression

Simple example of validating a string to check if it is an e-mail.