This tutorial will explain the use of regex, how to implement it, and the proper syntaxes.
This is an example of regex that will call out anything matching an email format. Anything with the "[email protected]" format.
/^([a-z0-9_\.-]+)@([\da-z\.-]+)\.([a-z\.]{2,6})$/