We need a regex that matches exactly the 12 given target strings and nothing else. To do that, we use an alternation group with non‐capturing group syntax (?: … ) anchored by ^ and $. Each target string is a literal string with regex metacharacters escaped appropriately. For example, in emails we escape the +, . and - characters, and in phone numbers we escape parentheses and dashes. The resulting pattern matches exactly one of the alternatives and nothing extra.