Copy link to clipboard
Copied
Hello, is there a way to cancel one instance of an active GREP style?
For example, I have a GREP style to italicize our company name every time it appears, but in one instance, we do not want it italicized. Is there a way to manually override that one instance while keeping the other instances live?
Thanks!
Create a new paragraph style that does not contain the GREP style, and apply it to the paragraph containing that one instance.
Copy link to clipboard
Copied
There could be other ways, but one way I've applied such an exception is to make a copy of the Paragraph style, delete the GREP style from it, and apply it to just that one paragraph.
Copy link to clipboard
Copied
Create a new paragraph style that does not contain the GREP style, and apply it to the paragraph containing that one instance.
Copy link to clipboard
Copied
In your GREP style query, you could add a Negative LookBehind for a Non-joiner characters and manually enter the non-joiner before the italics text in the paragraph when you want to disengage it.
(?<!~j)yourgrepquery
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
There's a simpler way, imo.
Strictly speaking, you can’t disable GREP for just one instance, but you can do this for a paragraph, without creating yet another style.
Put your text cursor in a paragraph which contains your word(s), go to ‘hamburger’ menu at the very right corner of Control panel (right after Quick Apply), select GREP Styles…, delete or disable the query you don’t want to be applied to that paragraph. Done.
Note: plus sign appears next to your para style name, showing there is an override.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
OMG! 😄