Back

If your email is not recognized and you believe it should be, please contact us.

  • You must be logged in to reply to this topic.Login

New to GREP

Return to Member Forum

  • Author
    Posts
    • #14356418
      Constanza Pacher
      Participant

      Hi, I’m new to GREP.

      Is there a list somewhere of basic GREP expressions?

      I’m trying to find/replace in InDesign words that were in italics in the original, but came in as -word- (hyphen word hyphen).

      I found this in D. Blatner’s Favorite GREP Expressions:

      \<c\w+e\>

      and tried to add the hyphens, but I lack vocabulary. Tried all these bud didn’t work:

      \<-\w+-\>
      \<“-“\w+”-“\>
      \<[-]\w+[-]\>

      Help is appreciated!
      Thanks.

    • #14356419
      David Blatner
      Keymaster

      Hi Constanza, glad you found my article!
      If you’re just looking for words that have hyphens around them, you can try: -\w+?-
      The dash will find a hyphen. \w means “any word character”. +? means one more more.
      But if you’re trying to get rid of the hyphens as you turn the word italic, I’d suggest searching for -(\w+?)-
      And then replace with $1

      • #14356421
        Constanza Pacher
        Participant

        (New to asking questions in forums too! ;-) Don’t know if my answer was recorded.

        OMG Magic! Thank you so much for the prompt reply!
        The two steps worked like a charm: brought back the italics, and then got rid of the hyphens.
        Much appreciated!
        Constanza

      • #14356424
        David Blatner
        Keymaster

        Sometimes posts and replies get held for moderation. Not sure why that happens. But if your post doesn’t show up, you can always email us at info@creativepro.com and say “hey, my forum post isn’t showing up.” :-)

        Glad this worked!

    • #14356428
      Steve Davis
      Participant

      I would love to find a program that could create GREP from English!
      find all words in italic and change them to …
      and then it would do it!

Viewing 2 reply threads
  • The forum ‘General InDesign Topics (CLOSED)’ is closed to new topics and replies.
Forum Ads