New Feature: Playlist Center! Pick a topic and let our playlists guide the way.
By James Fritz | Thursday, August 22, 2013
GREP (Global Regular Expression Parsing) is one of the most powerful features of Adobe InDesign, but it’s often overlooked since it hides within other capabilities like Find/Change and Paragraph Styles. Once you learn the basics of GREP, you might wonder how you ever worked without it.
If you’re not familiar with GREP and its relationship with InDesign, it’s used for both simple and complex text operations. Simply put, GREP lets you automate formatting and find/changing of text, based on patterns in the text.
Have you ever wanted to remove multiple spaces between sentences and words? You might have used a simple Find/Change that searches for two spaces and replaces it with a single space. But what happens if there are three, four, or even more spaces? You would end up having to run the Find/Change multiple times.
This is where GREP comes in handy. Using the built-in saved searches/query, you will find “Multiple space to single space.” When choosing this, you’ll see a really long, strange string of text. This text, which is a GREP command, simply means that InDesign is going to look for any type of space that repeats, and replace it with a single space.
As you outgrow the built-in Find/Change presets, you might want to customize a specific preset or even format your text in an elaborate but consistent way. For example, have you ever wanted to make bold every instance of your company name in a layout? Perhaps you just want to ensure that website URLs never break across lines. These are just two examples of what you can accomplish with GREP commands. The best way to learn GREP is to watch Michael Murphy’s course Learning GREP with InDesign. This course covers the basics and advanced techniques needed to help you work efficiently with InDesign.
Beyond this course, we have a more developer–focused Using Regular Expressions course that can show you more advanced GREP commands and techniques to apply to your InDesign creations.
Ready to learn more?
• Watch Learning GREP with InDesign
• Watch InDesign: 10 Things to Know about GREP
• Watch InDesign Secrets
• Watch Using Regular Expressions
Adobe and InDesign are registered trademarks of Adobe Systems Incorporated in the United States and/or other countries.
With online video courses at lynda.com, you can reach your goals faster. Learn software, improve your skills, and get an inside look at how the professionals work.
Share this article:
Tags: InDesign, Adobe InDesign, GREP, James Fritz, Text, Text Editing
You can change your email preferences at any time. We will never sell your email. More info
Thanks for signing up.
We’ll send you a confirmation email shortly.
Sign up and receive emails about lynda.com and our online training library:
Keep up with news, tips, and latest courses with emails from lynda.com.
We've updated our terms and conditions (now called terms of service).Go Review and accept our updated terms of service.