regular expression in programming language is special text string used for describing search pattern it includes digits and punctuation and all special characters like $#@!%etc expression can include literal text matching repetition branching pattern-composition etc in pythona regular expression is denoted as re (resregexes or regex patternare embedded through python re module