replacegrepfindadobe-indesigngrep-indesign

GREP changing function when applying 'change all'


OK, so this is really weird. I'm running this GREP to add space between closing quote marks/apostrophes and footnotes.

Find:

(~])(~F)

Change:

~]~|$2

This works great when I change them one by one, but when I hit the 'change all' button it just deletes all the found footnotes! I have hundreds of footnotes to change so any help would be much appreciated as I don't really want to change them one at a time when this should be unnecessary.


Solution

  • The idea is to not touch the footnote marker while still looking for it. A search using a lookahead: ~](?=~F) and changing it to ~]~| should work