GREP Find/Change Question

Learn / Forums / General InDesign Topics / GREP Find/Change Question

Viewing 3 reply threads
  • Author
    Posts
    • #87724
      gamouning
      Member

      Hi,

      I’m looking for a simple way to remove ” – ” only when it appears at the end of a paragraph called Names. I use the following Find text:

      ( – )(\r)

      and use the following Replace text:

      $2

      Although, it removes the text. It also changes the paragraph style. Is there someway to fix this? Should I be using a GREP LookAhead or LookBeind expression instead?

      Thanks in advance for any advice you can offer.

      -Greg

    • #87725
      gamouning
      Member

      P.S. Some paragraphs contain text following ” – ” and I want to leave those paragraphs asis.

    • #87738
      Ariel Walden
      Member

      Try searching for

      – $

      and replacing with nothing.

    • #87815
      Masood Ahmad
      Participant

      Try this, you have to specify the name of the paragraph style in your Find Format options:

      GREP Find Change:
      Find what: (.)( - )$
      Find Format: Paragraph Style: Names
      Change to: $1

Viewing 3 reply threads
  • You must be logged in to reply to this topic.
>