Reply To: GREP Expression to find specific range of characters?

Home Page / Forums / General InDesign Topics (CLOSED) / GREP Expression to find specific range of characters? / Reply To: GREP Expression to find specific range of characters?

#52926

Why 4?

Erm. Why not? :-) James' example shows 6 digits, and if it's always exactly that, safest way would be to use \d{6} — if only to prevent reacting to a line that happens to end with a single digit.

My GREP does work on James' example … (on copying you might accidentally have picked up a stray space or hard return).

I would advise not to use the any-character wildcard in .{26,30}, though. If there is a stray tab after the last item in his list, it will pick up the tab in between and the text thereafter as well. Use to [^]{26,30} prevent this, as it will always limit the style to any text between two tabs.

This article was last modified on June 2, 2010

Comments (0)

Loading comments...