Build, test, and debug regular expressions
This regex matches Brazilian CPF (11 digits) and CNPJ (14 digits) numbers, with optional punctuation such as dots, slashes, and hyphens. It is useful for extracting or validating these document identifiers in text, logs, or forms, while allowing both formatted and unformatted input.