Reply To: Style the Second Last (and last) Paragraph with GREP

Home Page / Forums / General InDesign Topics (CLOSED) / Style the Second Last (and last) Paragraph with GREP / Reply To: Style the Second Last (and last) Paragraph with GREP

#14341308

If 2 or 3 paras in these specific text frames, it seems to me simple to style (I would use para styles).

My 3 para styles are: PS_1, PS_2 and PS_3.

Regex 1:
Find: \A.+\r(.+\r)?.+\z
Replace by format: PS_2

[This first regex will only catch text frames with 2 or 3 paras!]

Regex 2:
Find: \A.
Find Format: PS_2
Replace by format: PS_1

Regex 3:
Find: .\z
Find Format: PS_2
Replace by format: PS_3

Of course, using a queries launcher, you just need 1 click!

(^/)

This article was last modified on July 8, 2021

Comments (0)

Loading comments...