1 person found this helpful
The problem is in your lookbehind: with the traditional lookbehind, you can't match variable-length text, and that's exactly what you're trying to do with .+ inside your lookbehind.
Your example is a classic candidate for the recently discovered variable-length lookbehind (it's been with us since CS6 or so, but Adobe never told us about it):
The \K item is the variable-length lookbehind: it says "match everything before \K but don't capture it". So you match the whole line starting with Introitus up to and including the paragraph mark. Up to this point you haven't captured anything yet. That's what the dot after \K does: it captures the first character of the following paragraph (the dot after \K may be difficult to see). There's no need to capture the whole paragraph in order to apply the paragraph style, one character will do.
Excellent!... I will mark your answer as correct, Altough i still would like (just out of curiosity) to know how to change only a second grouping of results, without affecting the rest, (and leaving them as they are.) Is that possible?
Thanks a lot!
You can't apply a style to only the second of two groupings. So if you look for (.)(.) and apply a style, the style is applied to the whole match, both groupings. The only way to exclude the first grouping from the style's application is to use a lookbehind.