This gist is a class assignment designed to help understand more of what regular expressions are how they are useful in the dev ops world.
The email regex is a commonly used to verify if the user has inputed an email in the right syntax. Below you'll find what each character means and how the code is read for it to be executed correctly. /^([a-z0-9_\.-]+)@([\da-z\.-]+)\.([a-z\.]{2,6})$/ is the regex. Briefly looking at it now, you may be able to see and possibly figure out it makes sense and is executed.