Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Using wild cards in Action search strings

Explorer ,
Apr 20, 2023 Apr 20, 2023

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.

TOPICS
Edit and convert PDFs , How to , JavaScript
2.1K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
1 ACCEPTED SOLUTION
Community Expert ,
Apr 21, 2023 Apr 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/13671...


Acrobate du PDF, InDesigner et Photoshoptographe

View solution in original post

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 21, 2023 Apr 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/13671...


Acrobate du PDF, InDesigner et Photoshoptographe
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Apr 21, 2023 Apr 21, 2023
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines