Reply To: GREP to insert a full stop at the end of paragraphs

Home Page / Forums / General InDesign Topics (CLOSED) / GREP to insert a full stop at the end of paragraphs / Reply To: GREP to insert a full stop at the end of paragraphs

#82143
Peter Kahrel
Participant

Samuel,

You were very close. Instead of ([^.])\r, use ([^\.])$.

The dot in your [^.] matches any character. To match just a dot in the text, use \.
Also, if you use \r you won’t match the last paragraph in a story if the story doesn’t end in an empty paragraph. $ matches the end of the paragraph even when it’s not followed by a return character.

Colleen: using ^p (or \r for that matter) in replacements can lead to strange results at points where the paragraphs before and after the ^p have different paragraph styles.

This article was last modified on February 21, 2016

Comments (0)

Loading comments...