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

Finding phrases for redaction across page breaks

New Here ,
Feb 03, 2017 Feb 03, 2017

Acrobat Pro XI

I need to create a regular expression to redact text in PDF documents that is between double square brackets ([[ and ]]).  I've added a set to the SearchRedactPattern.xml file with the following value for regEx:

(\[\[)((?!\[\[)[\s\S])*?(\]\])

This successfully finds instances of bracketed text, except for one condition: when the text spans a page break.  I've tried adding other characters to the ones to be searched, and expanded the expression to

(\[\[)((?!\[\[)[\s\S\n\f\p\v\r\0])*(\]\])

with no change in behavior.

Is there some kind of hidden special character code or expression that can include whatever represents a page break in a PDF, that can be added to my expression?

TOPICS
Edit and convert PDFs
280
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 ,
Feb 03, 2017 Feb 03, 2017
LATEST

I don't think so. The only way it could be done is by using a custom-made script, I believe.

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