Skip to main content
Noyster2
Inspiring
August 17, 2023
Question

GREP find replace help

  • August 17, 2023
  • 1 reply
  • 159 views

I want GREP to put hard return before [space]anydigit.[space]

I'm working on a job with 129 footnotes that are all running-in together, that is: No line breaks.
I made a Find/Replace command that looks like:

 

Find:  \d. 

Replace:\r\d. 

 

It finds the places where I have to break the lines, but it is replacing my footnote numbers with the characters " \d "
Does anyone know how I can keep the character but get a hard return before it?

Thanks in advance!

 

This topic has been closed for replies.

1 reply

Barb Binder
Community Expert
Community Expert
August 17, 2023

So you aren't using InDesign's footnote feature that has all the formatting controls you will likely ever need, including controls on the space between footnotes?

 

If you typed up this list of notes manually, try

F: (\d+)

R: \r$1

 

~Barb

~Barb at Rocky Mountain Training