GREP Library / Last two words of a paragraph together
GREP stylesInDesign GREP

Last two words of a paragraph together

GREP style with a No Break character style, so the last line of a paragraph always has at least two words.

Find
Before…and then it rained.
\S+ \S+$
Change to
After…and then it rained.
Leave empty and apply a style in Change Format, or use as a GREP style
Regular space

Run all of these at once with the free GREP Batch Processor.

All GREPs in the library · Learn GREP · Special characters