email solution

My solution uses a template for the email pattern.
/\S+@\S+\.\S+/; //checks for this format string@string.string