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?