GREP Find/Change Question
- This topic has 3 replies, 3 voices, and was last updated 7 years, 8 months ago by .
- You must be logged in to reply to this topic.
Learn / Forums / General InDesign Topics / GREP Find/Change Question
Learn / Forums / General InDesign Topics / GREP Find/Change Question
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
P.S. Some paragraphs contain text following ” – ” and I want to leave those paragraphs asis.
Try searching for
– $
and replacing with nothing.
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
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies allows us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
To provide the best experiences, we and our partners use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us and our partners to process personal data such as browsing behavior or unique IDs on this site and show (non-) personalized ads. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Click below to consent to the above or make granular choices. Your choices will be applied to this site only. You can change your settings at any time, including withdrawing your consent, by using the toggles on the Cookie Policy, or by clicking on the manage consent button at the bottom of the screen.
You have to be logged in to save.
Not a member? Join Today - it's FREE!