Skip to content

Instantly share code, notes, and snippets.

View JimmySolis's full-sized avatar

Jimmy Solis JimmySolis

View GitHub Profile

Break Down of Email Regex (Regular Expressions)

This gist is a walking through breaking down the regular expression used to qualify an Email adress:

  /^([a-z0-9_\.-]+)@([\da-z\.-]+)\.([a-z\.]{2,6})$/  

By taking it down section by section and identifying each character, we will build a larger understanding of how useful regex (regular expression) are.