Grep for adding a ® symbol

Learn / Forums / General InDesign Topics / Grep for adding a ® symbol

Viewing 4 reply threads
  • Author
    Posts
    • #1251803

      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

    • #1251814
      David Blatner
      Keymaster

      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

    • #1251824

      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?

    • #1251844
      David Blatner
      Keymaster

      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

    • #1251864

      That worked fine.
      Thanks!

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