Regular expresssions are an important part of software development. They allow us to search for specififc patterns so that we can create more robust queries.
In this gist, I will break down how the regex below works. It allows a user to find and match emails.
/^([a-z0-9_\.-]+)@([\da-z\.-]+)\.([a-z\.]{2,6})$/