Mobile app version of vmapp.org
Login or Join
Caterina889

: GREP style after double line break I would like to apply a GREP style to all words after a double line break (before the next line break). Basicly highlight all the titles in the document.

@Caterina889

Posted in: #AdobeIndesign #Grep

I would like to apply a GREP style to all words after a double line break (before the next line break). Basicly highlight all the titles in the document. What would be the code for that?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Caterina889

1 Comments

Sorted by latest first Latest Oldest Best

 

@Debbie163

You should never, ever use multiple line breaks... If your text reflows, line breaks could be located on top of a column or a frame, which is definitely not what you want (see example below).
I strongly suggest you get rid of them, and apply a specific paragraph style to your title, with some space before.
Assuming your document is already set up this way, you can use the Search/Replace Grep feature to get rid of those multiple line breaks while applying Title paragraph style.
Searching (^rr)(.) and replacing by should do the trick.
Note that in your screenshot, we can see a unwanted space before line break, which won't allow this Grep query to work properly.

Example:

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme