Reply To: GREP Styles Quick formatting help

Home Page / Forums / General InDesign Topics (CLOSED) / GREP Styles Quick formatting help / Reply To: GREP Styles Quick formatting help

#125189
Aaron Troia
Participant

Stan,

Since you said there are always 11 before the numbers in the address, I think we can work from there without slecting the whole line, try this,

Find: (\d{11})(\d+)(?=[A-Z])
Change: $1 $2

This is finding and grouping exactly 11 digits (\d{11}) that have a space before, then grouping any digits that follow those 11 digits (\d+) and to be sure we have a lookahead assertion (which is zero length group so we dont need to add a $3 group) to make sure there is a letter from A-Z (?=[A-Z]).

Make sure you make a copy of your file before you test this, or run it on a few and see how it goes. I would hate for it to need a little more tweaking before it was right for what you need and mess up any content.

Aaron

This article was last modified on May 22, 2020

Comments (0)

Loading comments...