Customize redaction search patterns (11 digits)
Copy link to clipboard
Copied
Hi!
Is it possible to create custom search patterns for the redaction tool?
I'm going to remove certain numbers in 11-digits social security numbers, but none of the current patterns offer the ability to only search for 11 digits (I can currently only access patterns from US, UK, Canada, Germany, France, Japan).
Is there any way to solve this?
Copy link to clipboard
Copied
Hello,
Were you able to figure this out? I'm trying to figure out how to redact the bank account info on scanned checks. I don't like to do things manually if there's a way to have the computer do it. I'm surprised there isn't more info out there about how to do it.
Copy link to clipboard
Copied
To create custom patterns you must edit the "SearchRedactPatterns.xml" file.
It is located here:
C:\Users\NAME\AppData\Roaming\Adobe\Acrobat\DC\Redaction\ENU\
If you use Acrobat in a different language you will find it in your locale folder.
e.g.: C:\Users\NAME\AppData\Roaming\Adobe\Acrobat\DC\Redaction\FRA\
Also pay attention to this setting in the Preferences:
Acrobate du PDF, InDesigner et Photoshoptographe
Copy link to clipboard
Copied
Unfortunately, I'm not seeing ANY files in that folder.
Copy link to clipboard
Copied
You need to replace "NAME" with your user name on that computer, of course.
Also, be aware that the AppData folder is usually hidden, so you have to enable the option to show hidden folders, or type it in manually.
Copy link to clipboard
Copied
I was able to find the file and create a new pattern, but I'm struggling with the regular expression to find the routing and account number. Is it perhaps because they are scanned? I've run the Scan & OCR tool before the pattern finder to see if that's the cause. Anyone out there need to redact bank account info?
Copy link to clipboard
Copied
BTW, thanks JR Boulay and try67 for your direction so far.
Copy link to clipboard
Copied
I see the search pattern is defined using the the definition below. does anyone know where I might be able to find some explination of the code so that I can construct a search for check and routing number information?
<val>(\b)((\d{3}(-|\s|\.|_)\d{2}(-|\s|\.|_)\d{4})|(\d{9}))(\b)</val>
thanks
Copy link to clipboard
Copied
IF you stumbled across this page..... this is going to be your best link
Creating and Using Custom Redaction Patterns (adobe.com)
REGEX! thats what the code type is.. hope it helps

