How to Create Custom Redaction Search Patterns in Adobe Acrobat
Question details
Users need to configure custom regular-expression search patterns to automatically find and redact sensitive information in Adobe Acrobat.

- Product
- Adobe Acrobat Pro
- Device & OS
- not provided
- Scenario
- Finding and redacting specific formats of sensitive data in PDF documents automatically.
- Observed behavior
- The location of the SearchRedactPatterns.xml file and the availability of custom pattern editing vary depending on the Acrobat release and operating system, causing confusion.
Before modifying system files, verify your exact version of Adobe Acrobat, as the redaction tools and custom XML file support differ significantly between newer and older releases.
Use Built-in Redaction Search Patterns
For modern versions of Acrobat, the standard redaction tool includes several built-in patterns for finding common sensitive data formats without needing XML configuration.
In newer Acrobat updates, the feature to search for patterns is no longer available in the generic Advanced Search window. You must initiate the search directly through the dedicated Redact tool interface.
Open your document in Adobe Acrobat, navigate to the Tools pane, and select the 'Redact' tool.
Click on 'Mark for Redaction' in the secondary toolbar and choose the 'Find Text' option.
In the search panel that appears, choose the 'Patterns' option to view the list of available regular expression searches.
Choose a specific pattern from the drop-down list (such as credit card numbers or phone numbers), run the search, and apply your redactions to the identified text.

Configure Custom Patterns using the XML File
In older or specific enterprise versions of Acrobat, you can define custom regular expressions by modifying the SearchRedactPatterns.xml configuration file.
Try WPS Office for Lightweight Document and PDF Management
While configuring complex XML files for custom regex patterns is highly specific to Adobe Acrobat, WPS Office offers a comprehensive, user-friendly suite for your everyday document creation and standard PDF editing needs.

Frequently Asked Questions
Why can't I find the SearchRedactPatterns.xml file on my Mac?
The location of the XML file changes depending on your exact macOS version and Adobe Acrobat release. In newer versions, this file may be hidden within the app package contents or the feature may no longer be supported for manual user edits.
Can I edit the Acrobat source code to add my own redaction search patterns?
No, end users do not have access to Adobe Acrobat's proprietary source code. You can only customize redaction patterns by editing the designated SearchRedactPatterns.xml configuration file, provided your specific version still supports it.
Are custom redaction search patterns available in the Advanced Search window?
In newer updates, the patterns option is no longer available in the generic Advanced Search window. You must open the Redact tool, select Mark for Redaction, choose Find Text, and then select the Patterns option from there.
What should I do if my version of Acrobat does not support custom XML patterns?
If custom XML editing is unsupported or restricted in your release, you must rely on the built-in patterns provided in the Find Text menu or contact Adobe Support to inquire about version-specific configuration solutions.




