function to format cpf and cnpj code example Example: cnpj pattern js /^\d{2}\.\d{3}\.\d{3}\/\d{4}\-\d{2}$/