Regular expression (regex for short) is a language for specifying patterns to search for in text.