1 Reply Latest reply on Feb 3, 2017 12:54 PM by try67

    Finding phrases for redaction across page breaks

    brianm40158745

      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?