Participating Frequently
October 7, 2022
Answered
Overlapping Grep Queries
- October 7, 2022
- 2 replies
- 612 views
Hi, everyone!
I'm using GREP to apply some character styles within my paragraph styles, but I have a conflict.
- Whenever "Emergency Stop button" comes up, I want to apply "btn red" character style to that text.
- Whenver "Stop button" is found, I want to apply "btn blue" character style.
As you can see, this is a conflict. Is there a way to tell the "Stop button" GREP to apply only if the word before is not Emergency?
I took a quick look at the existing GREP posts, and didn't see this asked, but my GREP knowledge is almost nonexistent. My apologies if it was already answered and I missed it!


