Follow along this gist for an explanation on targeting email address strings using a Regular Expression in JavaScript.
Our Regular Expression: /^([a-z0-9_.-]+)@([\da-z.-]+).([a-z.]{2,6})$/
A Regular Expression, or RegEx, is used to target a string value. The expression itselfs specifies the composition of the string that is being targetted.