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

GREP change font just a part of a word?

Tagged: 

Return to Member Forum

  • Author
    Posts
    • #88500
      Tommy Larsen
      Member

      Hi there!

      I have a little problem, which I think can and should be solved using GREP styles. We have an online ordering system, with an InDesign Server behind, of course running various templates. One of the customers have a name like “infoname”, where the “info” part goes in bold and name is regular. How do I make the correct GREP for this, since I of course don’t want “info” in bold everywhere it is typed (info-rmation would look pretty bad)?

      Thanks in advance!
      /Tommy

    • #88501

      Hi Tommy,

      in this case, you need a so called lookahead, that find the position of your second phrase, but does not include the characters as a found.

      info(?=name) OR (?=infoname)info

      Kai

    • #88503
      Tommy Larsen
      Member

      Thank you, Kai – works like a charm :)

      Guess I’ll be buying a book about GREP in general, could be useful in my ordinary programming as well!

      /Tommy

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