Skip to main content
Inspiring
May 28, 2022
Answered

I need a script similar to "Find Change From Spreadsheet" but for GREPs.

  • May 28, 2022
  • 2 replies
  • 726 views

Hi

 

I have a problem with a GREP: when I do it one by one it works perfectly, but when I use Change all command it doesn't work, so I need a script to do the find and change one by one to the whole file, so it's something similar to Find Change From Spreadsheetbut with GREP instead of text.

This topic has been closed for replies.
Correct answer m1b

Hi @AK09M, try this:

 

((?<=~F) | (?=~F))

 

This searches for a space with a footnote number before it OR a space with a footnote number after it.

- Mark

2 replies

m1b
Community Expert
Community Expert
May 28, 2022

Hi @AK09M, can you give an example of your GREP that works for one change but not for change all? I've never come across that before and I'd like to understand what happens. 
- Mark

m1b
Community Expert
m1bCommunity ExpertCorrect answer
Community Expert
May 28, 2022

Hi @AK09M, try this:

 

((?<=~F) | (?=~F))

 

This searches for a space with a footnote number before it OR a space with a footnote number after it.

- Mark

Willi Adelberger
Community Expert
Community Expert
May 28, 2022

When it does not work, it is not find & replace.

Describe what you are missing.

AK09MAuthor
Inspiring
May 28, 2022

I have a space before and after every footnote number in the text and I want to remove them, I used

Find: (~F) 

Change to: $1

 

When I do it one by one it works perfectly, but when I use change all it doesn't work it turns them into squares.
see the link below for a sample of the file.