is now part of CreativePro.com!

GREP of the Month: Lookahead

With Lookahead GREP searches, you can target a text string by what follows it.

InDesign Magazine issue 86 cover
This article appeared in Issue 86 of InDesign Magazine.

Many find-and-replace actions involve finding a string and replacing—or applying some formatting to—only part of the found string. But if you find a string and want to apply formatting to just part of it, you have to select the part of the string you’re interested in, do the replacement or formatting, and then find the next occurrence. All this can become very tedious very quickly.

Fortunately, GREP offers a way to do conditional finds, such as “find the word Figure only if it’s followed by a digit.”

. . . .

This article is for members only. To continue reading, please sign in, or sign up for a membership today. Thanks for supporting CreativePro!

BECOME A MEMBER

CreativePro membership keeps you up-to-date with the technology, solutions, and resources to strengthen your professional development.

For just $6.50/month (billed annually), you’ll get access to valuable benefits, including:

  • 12 monthly issues of CreativePro Magazine, filled with practical, real-world tutorials written by experts
  • Downloadable resources including templates, fonts, scripts, design assets, cheat sheets, and more
  • Hundreds of members-only tutorial and tip articles
  • Top Tips for InDesign, Photoshop, and Illustrator ebook collection
  • Discounts on events and books
  • and more...

Sign up now!



Peter Kahrel is the author of several eBooks on InDesign and scripting, including GREP in InDesign, published by CreativePro Network. He also wrote the feature article on "Getting a Grip on GREP" in InDesign Magazine Issue 59.
>