The purppose of this tutorial is to give users information on what Regex is and how to use it. The tutorial will provide a summary as well as detail examples for a specific regex provide.
Regular Expression, otherwise known as "Regex"; is a sequence of characters that defines a specific search pattern. Regex can be used to find certain patterns of characters within a string. However, Regex is most frequently used to validate inputs from a user. An example is the following Regex provided below.
/^([a-z0-9_\.-]+)@([\da-z\.-]+)\.([a-z\.]{2,6})$/
The regex is used to verify that the user input is a valid email address. More details of this Regular Expression will be provided below