Reply To: Using GREP to easily format subheads.

Home Page / Forums / General InDesign Topics (CLOSED) / Using GREP to easily format subheads. / Reply To: Using GREP to easily format subheads.

#79630
John Tierney
Member

Right this is what I have done in the “Find and Replace” dialog.

Find:

(?<=\r\r)(^.{3,60}$)

This allows me to find a short paragraph which is preceded by two paragraph breaks (which is how I am indicating the start of a subhead in my raw text). In my style sheet box I have set “Body text” so it will ignore any heads which have set themselves automatically when I have used Object styling.

Replace:

$1

With style sheet set to “Subhead”.

I then go back at the end and replace my double paragraph breaks with single paragraph breaks.

Simples.

Thanks.

This article was last modified on November 24, 2015

Comments (0)

Loading comments...