Grep for adding a ® symbol
- This topic has 4 replies, 2 voices, and was last updated 3 years, 11 months ago by .
- You must be logged in to reply to this topic.
Learn / Forums / General InDesign Topics / Grep for adding a ® symbol
Learn / Forums / General InDesign Topics / Grep for adding a ® symbol
Hi:
Appealing to some grep guru master here on the forum:
I need to add ® at the end of every word of a given character style. That word is always at the beginning of a paragraph (but not all paragraphs).
eg.:
Word(with character style applied to it different than sentence ahead) is a beautiful word.
Word® is a beautiful word.
Thanks i advance!
Danny
Is it only when that word is both at the beginning of the sentence and also has the character style?
To search for “Word” at the beginning of the paragraph, you can use the grep tab in Find/Change and search for ^Word
Hi David:
Damn you’re fast. Thanks.
I didn’t express myself well. The “word” is in fact many different words but always with that given character style.
And yes always at the beginning of a sentence.
And in fact is not always just a word… it can be two or even three (at the most) words also ;-)
Is it possible?
Sometimes I’m fast and sometimes I’m slow. :-)
Yes, this works. In the image below, the character style is called “ProductName”
I should add: The codes are ^.+
and $0~r
That worked fine.
Thanks!
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!