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
A Script for Making Bar Graphs with GREP
Free script provides a solution for creating bar graphs from live text in InDesi...
Big Problem with FindChangeByList (and an easy fix)
The FindChangeByList script is a marvel, and I’ve used it many times to clean up...
Indexing Case Sensitive Words
Indexing is a painful word, close to root canal in my opinion. I have been lucky...
