This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DLP Expressions

hi,

Does anyone have an example of expression to block bank data and CNPJ (Tax code)  number in the DLP policy?

I'm trying the following expressions, but not working.

(\d{2}[-.\s]?\d{3}[-.\s]?\d{3}[-.\s\/]?\d{4}[-.\s]?\d{2})

[0-9]{4}\-[0-9]$

Best regards.



This thread was automatically locked due to age.
Parents
  • Hello Rafael Silva Ferreira,

    first of all, it's not clear whether your rule uses one custom CCL or two,  what your documents contain, and what not working means - I assume it's not blocking.

    Your first expression matches not only a CNPJ but any sequence of 14 digits possibly interspersed at certain positions with punctuation or white space - and it does not consider the fact that the last two digits are check digits. Perhaps not impossible to do with a regex but infeasible  Can't say why there is no predefined CCL for this like for CAEPF and CPF.
    And the purpose of your second expression is not really clear.

    Christian

Reply
  • Hello Rafael Silva Ferreira,

    first of all, it's not clear whether your rule uses one custom CCL or two,  what your documents contain, and what not working means - I assume it's not blocking.

    Your first expression matches not only a CNPJ but any sequence of 14 digits possibly interspersed at certain positions with punctuation or white space - and it does not consider the fact that the last two digits are check digits. Perhaps not impossible to do with a regex but infeasible  Can't say why there is no predefined CCL for this like for CAEPF and CPF.
    And the purpose of your second expression is not really clear.

    Christian

Children
No Data