Skip to main content
May 7, 2019
Answered

Find/Change Consecutive Numbers

  • May 7, 2019
  • 1 reply
  • 858 views

I want to know if there is a way to find/change consecutive numbers. For example, a manuscript I am working on has plan text endnotes that are numbered [1] to [25]. I want to change the Character Style to Footnote Reference Number for each bracketed number from 1 to 25.

Currently, I am manually doing it by running a query using Find/Change that finds the bracketed number and changes it to a footnote reference number. This is alright if there are only a couple endnotes, but for authors that have 40 or 50 endnotes in plan text, I was hoping there's an easier way using GRAP or something...

This topic has been closed for replies.
Correct answer Peter Kahrel

Find: \[\K\d+?(?=\])

Change to: leave empty

Find format: leave empty

Change format: Footnote reference number style.

P.

1 reply

Peter Kahrel
Community Expert
Peter KahrelCommunity ExpertCorrect answer
Community Expert
May 7, 2019

Find: \[\K\d+?(?=\])

Change to: leave empty

Find format: leave empty

Change format: Footnote reference number style.

P.

Jongware
Community Expert
Community Expert
May 7, 2019

Right. I was wondering how ever the required "consecutive numbers" could play a part in this -- because it doesn't.

Peter Kahrel
Community Expert
Community Expert
May 7, 2019

asian technology probably meant consecutive digits, what you and would call numbers.