The term "REG" is an acronym that stands for "Regular Expression". In computer programming, a regular expression (often abbreviated as "regex") is a sequence of characters that define a search pattern used to match strings or pieces of text. Regular expressions are commonly used in searching, validating and parsing data across various programming languages.