Skip navigation

Creating a GREP-based text cleanup script

Creating a GREP-based text cleanup script: Learning GREP with InDesign
Creating a GREP-based text cleanup script: Learning GREP with InDesign

Join for an in-depth discussion in this video Creating a GREP-based text cleanup script, part of Learning GREP with InDesign.

Resume Transcript Auto-Scroll
Skill Level Intermediate
3h 45m
Duration
209,400
Views
Show More Show Less

Q: In the “Dynamically fixing orphaned words with GREP” tutorial the author uses the term:
(?<=\w)\s(?=\w+[[:punct:]]+$)
In an earlier course the author described the + (one or more) modifier as unusable in a lookbehind or lookahead i.e. (?<=.+). What's the difference here?

A: The limitation mentioned in an earlier movie referred only to positive lookbehind and negative lookbehind. I was able to use the one or more times (+) metacharacter in the positive lookahead portion of the expression because that limitation doesn't affect either positive or negative lookahead. It's only when looking backward that GREP ignores the repeat metacharacters.

Skills covered in this course
Design InDesign

Continue Assessment

You started this assessment previously and didn't complete it. You can pick up where you left off, or start over.

Start Your Free Trial Now

Start your free trial now, and begin learning software, business and creative skills—anytime, anywhere—with video instruction from recognized industry experts.

Start Your Free Trial Now