: 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.
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?
More posts by @Caterina889
1 Comments
Sorted by latest first Latest Oldest Best
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:
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.