Skip navigation
Currently Being Moderated

GREP Question

Aug 10, 2012 12:36 PM

I have an indesign para style where I have a character style nested to a colon. I'd like to have a grep style that states "whenever you encounter text in parenthesis, italicize the text (along with the parathensis)". I thought it would be [\(\l\u\)] but that didn't do it. Any help would be appreciated.

 
Replies
  • Currently Being Moderated
    Aug 10, 2012 12:45 PM   in reply to dave c courtemanche

    Your try consists only of a *character set*, that is, a list of matching single characters. Hence it doesn't work -- *all* of each single character in your set, uppercase, lowercase, and parentheses, are matched, one at a time.

     

    Try this instead:

     

    \(.+?\)

     

    It's left to right: open parens, any character, lots of them, but not too many, closing parens.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points