A regular expression (regex) defines a search pattern for strings. The search pattern can be anything from a simple character, a fixed string or a complex expression containing special characters describing the pattern. A regex can be used to search, edit and manipulate text, this process is called: The regular expression is applied to the text/string. The regex is applied on the text from left to