A regular expression (shortened as regex or regexp; also referred to as rational expression) is a sequence of characters that define a search pattern. Usually such patterns are used by string-searching algorithms for "find" or "find and replace" operations on strings, or for input validation.
Each section will incapsulate a specific use case of regex and will describe both the syntax and provide an example of it's use.