Reply To: GREP space

#34253
Justin Sligh
Member

Jamie,

Instead of adding an additional physical whitespace character, you should consider providing the desired space through your paragraph styles.

Create a grep style using:
(?<=[[:punct:]]) (?=\u)

The associated character style will control the width of your spaces. You can set the horizontal setting to 200 percent to double the size.

We then need to take care of the Mr., Ms., Mrs. You can do so by creating a second grep style using:
Dr\. |Mr\. |Ms\. |Mrs\.

Take note of the space after each dot. The associated character style should have the horizontal setting set to 100 percent. In order to override the previous grep style, ensure that this one is placed above the previous.

I was unable to use a negative lookbehind that included multiple entries. I am sure a grep guru could provide an example of how to do this in a single grep style.

This article was last modified on July 13, 2013

Comments (0)

Loading comments...