GREP Help- multiple words end of paragraph only
I'm new to GREP styles in InDesign. I've been searching and studying and can't find an answer to this yet, and I need to solve this for a project. I have a heading that shows readers what page/section they are on using words or phrases separated by pipes. I need to set all the words at the end of the series (after the last pipe) to Light Yellow. So far I can only get it to do this if there's one word, but I need it to set in the case of multiple words (2 or more) as well. In this example, you can see my problem. The \w+ gets me what I want if there's only one word, but as you can see, if there's more than one word there's no change because the space is not a word character.

If I use .+ or .+? it works for multiple words, but since the pipe is included in "any character" it finds everything after the first pipe to the end of the story. I need only what's after the last pipe in the story colored Light Yellow.

Any help in solving this would be greatly appreciated. Maybe I'm just going about this all wrong?
Steve

