Regular expressions is used to detect particular character patterns within a string. Inside one string, you may also locate and modify a symbol or a group of letters. They're also often used to double-check data. An example is to valid an e-mail addresses, the regex matches character information.
This is the regex code for this tutorial is: /^([a-z0-9_.-]+)@([\da-z.-]+).([a-z.]{2,6})$/