Temporarily Turning Off a GREP Style
I’m not the best GREPper out there, but I do know how to create a few simple styles. One of the things I like to do is see the results of turning a GREP style on and off for several types of paragraphs. But I don’t want to delete my precious, laboriously-made GREP formulas. This morning I had an epiphany.
To temporarily turn off the GREP style, select the character style and change it to None. It’s that simple! You don’t delete the GREP style, you just make it do nothing.

A GREP style set to apply the No Break character style.

A GREP style turned off by setting it to None.
But then I found Anne-Marie’s comment to Mike Rankin’s post Adventures in GREPland where she reminds him that an asterisk (*) in front of a GREP expression will turn off the expression.

Placing an asterisk in front of a GREP express also turns it off.
The benefit to using the asterisk trick is that you don’t have to remember which character style was associated with that expression. You just have to remember to use an asterisk.
This article was last modified on July 25, 2019
This article was first published on December 18, 2014
Commenting is easier and faster when you're logged in!
Recommended for you
Tip of the Week: Reordering Paragraphs With GREP
This tip was sent to Tip of the Week email subscribers on October 30, 2014. Sign...
Automate GREP Find/Change in InDesign with ChainGREP
Editor’s note: Previously, we shared the news about ChainGREP, a great scr...
Auto Style the Last (or First) Paragraph of an InDesign Story
Want the last paragraph of a story to appear different? This trick can do it in...
