A regular expression, regex or regexp is, in theoretical computer science and formal language theory, a sequence of characters that define a search pattern.   .            – Any Character Except New Line \ d        – Digit (0-9) \ D       – Not a Digit (0-9) \