Reply To: Selecting Next Paragraph following another one using Grep

Home Page / Forums / General InDesign Topics (CLOSED) / Selecting Next Paragraph following another one using Grep / Reply To: Selecting Next Paragraph following another one using Grep

#67736
Masood Ahmad
Participant

It’s too late to revert back to the old post. I was just searching something and found this. JC, I hope you might have achieved this already. Your query is interesting, so I think to give it a try…

Might be I’m wrong, could you please check and let me know if this is the right code for your query:

Find what:
(.+\r)(?=.*myWord.*)

Change to: paragraph style of your choice.

The code works fine for me unless you do not have blank lines in between. It applies a style to a paragraph if the next para contains myWord.

This article was last modified on March 25, 2014

Comments (0)

Loading comments...