Regular Expression (Regex) utilizes a string of values and characters to search for a specific string, also called a match. Regex is useful for finding multiple matches within multiple lines of code. Some uses of regex include finding and replacing code and used for input validation. Keep in mind, that this is not a comprehensive regex guide, but attemps to explain regex through the expression below. There are other components that are not explained here. If you wish to learn more about regex this website is an excellent resource: https://regexr.com/61lrg.
Email Regex
/^([a-z0-9_\.-]+)@([\da-z\.-]+)\.([a-z\.]{2,6})$/g