Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
I don't think so. The only way it could be done is by using a custom-made script, I believe.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now