Test, validate and match regular expressions
This regex matches a Brazilian CNPJ (Cadastro Nacional da Pessoa Jurídica) number in its standard formatted representation: two digits, a dot, three digits, another dot, three digits, a slash, four digits, a hyphen, and two final digits. It is useful for validating input fields where a CNPJ must be entered in the canonical format, such as in forms, databases, or data processing pipelines that handle Brazilian corporate entities.