A regular expression is an object that describes a pattern ofcharacters.
Regular expressions are used to perform pattern-matching and"search-and-replace" functions ontext.
1. pattern specifies the pattern of an expression
2. modifiers specify if a search should be global, case-sensitive, etc.