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

End of Paragraph GREP not working

Return to Member Forum

  • Author
    Posts
    • #65822
      Matt Mayerchak
      Participant

      I’m working on a long art museum catalog in InDesign CS5 (at client’s insistence), and each entry has author’s initials in caps at the end of the body text. They are supposed to have a particular char style (“initials”) but some got styled with “caps” (a style I use to add tracking to strings of capitals in text).

      When I do a GREP Find/Change using \u+$ to search for all strings of uppercase characters at the end of a paragraph, if my char style format is set to “any” or “none” it works correctly . . . (some had “none” and I was able to use this to reapply the char style.)

      BUT – if I search for the same thing with character style “caps”, or any other attribute that is used elsewhere in the text, such as a tracking value, it finds all of those other strings of caps, even in the middle of paragraphs. In other words, InDesign is ignoring the $ (end of paragraph) location marker if the formatting query finds a match in the middle of a paragraph or elsewhere. Why? and how can I get around this?

      Is this just too many things for GREP to handle? I expected that the Character Style format in the Find field would limit what it finds; isn’t that the whole point of it?

    • #65823
      Matt Mayerchak
      Participant

      P.S. I did find a way around the problem, due to other unique formatting (an em dash and a thin space) being used before the author’s initials; but it bothers me that the GREP is ignoring the end-of-paragraph code, especially since it works when the find character style code is set to Any or None.

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