This tutorial covers the main basic concepts of regular expressions (regex) .
Regular expressions or also more commonly known as Regex are a sequence of characters that defines a search pattern. Regex are commonly used to validated an input or find/replace characters withing text. Regex are rather universal and can be used in most programming languages. Consider the following expression:
/^([a-z0-9_\.-]+)@([\da-z\.-]+)\.([a-z\.]{2,6})$/