Reply To: 2 More bits of GREP that are vexxing me

Home Page / Forums / General InDesign Topics (CLOSED) / 2 More bits of GREP that are vexxing me / Reply To: 2 More bits of GREP that are vexxing me

#53911

Lastly, i'd like to construct a grep find/change for any spaces or returns at the end of the story and remove those. Once again, thanks so much for your help.

Ah — fortunately, that's an easy one. Z is an (undocumented?) Tag-End-of-Story — A is its Beginning-of-Story equivalent.

This ought to work:

[rt ~S~s]+Z

(Replace with nothing.)

This looks for, and removes, series of Paragraph return, Tab, Space, Non-Breaking Space, and Non-Breaking Fixed Width Space (one of the latter two may have been imported via Word).

(An additional note: GREP cannot change the case of letters. Use the To-Caps function as Casey said, which will add an text attribute, or just search for it with GREP and change manually. For cases like this I assigned hotkeys to the To-Uppercase and To-Lowercase menu items.)

This article was last modified on November 23, 2009

Comments (0)

Loading comments...