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.
Hi There,
Thank you for reaching us about this, You may refer to this documentation on setting up an expression for DLP. Also for further assistance, you may reach to your Account manager as this is a customize set-up that is already out of our support scope.
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
Hi
I usually use https://regexr.com/ to create regular expression with PCRE
Test this regular expression and see if works for your purposes.
\b(\d{3}\.?\d{3}\.?\d{3}\-?\d{2}|\d{2}\.?\d{3}\.?\d{3}\/?\d{4}\-?\d{2})\b