Skip to main content
Inspiring
April 21, 2023
Answered

Using wild cards in Action search strings

  • April 21, 2023
  • 1 reply
  • 2811 views

For an Action that utilises the Redact function to store found search values, how can I use wild card characters in the search string. For example * for any characater and ? for a specific character?

Presently the Action has three steps:

1: Search & Remove Text which offers a dialog for search strings

2: Execute Javascript which takes the found redactions and changes them to highlight annotations (I then do various things with different javascripts, like replacing text, commenting, striking out, etc.)

3: Save the file

The search string with cards will be applied in the first step.

This topic has been closed for replies.
Correct answer JR Boulay

The "Find text and redact" tool can use GREP queries.

You should read this topic: https://community.adobe.com/t5/acrobat-discussions/sanitize-document-using-custom-patterns/m-p/13671347#M404782

1 reply

JR Boulay
Community Expert
JR BoulayCommunity ExpertCorrect answer
Community Expert
April 21, 2023

The "Find text and redact" tool can use GREP queries.

You should read this topic: https://community.adobe.com/t5/acrobat-discussions/sanitize-document-using-custom-patterns/m-p/13671347#M404782

Acrobate du PDF, InDesigner et Photoshopographe
Inspiring
April 21, 2023

Perfect. I wondered if a version of regex would work but could find no reference to it in Adobe's pdf javascript manual.

 

Now I just need to work out how to build an interface for it to enable input while working on a document.