For my first tutorial, the objective is to summarize the syntax and the different components that create a regex. For this tutorial, the regex example will be one that seeks to macth an email address. We will find out how this regex create a pattern, seeking to match any real life email address.
The regex that will be explained is the following:
/^([a-z0-9_\.-]+)@([\da-z\.-]+)\.([a-z\.]{2,6})$/