Reply To: Adding spaces to large figures ? with GREP?

Home Page / Forums / General InDesign Topics (CLOSED) / Adding spaces to large figures ? with GREP? / Reply To: Adding spaces to large figures ? with GREP?

#34463
Justin Sligh
Member

Hans,

If your numbers included a decimal place or more specifically a period, you could use a Grep Style to take care of the issue. The expression would be:
\d(?=(\d\d\d)+\D)
The associated character style controls the space between through “tracking”. Setting it to 150 or 200 should suffice.
This expression is saying, Look for a single digit that has one or more three digits groups followed by anything but a digit (e.g, a period). Using \D would allow it to pick up on line breaks and allow you to style whole numbers outside of tables when these numbers are immediately followed by a line break.

Else, you will need to use a Grep Find/Replace. The following expression will find the numbers:
Grep Find:
(?<=\d)\d\d\d(?!\d)

Grep Replace:
$0 There is a space before the $

One of these came from jongware. I don’t remember which.

This article was last modified on July 29, 2013

Comments (0)

Loading comments...