Skip to main content

GREP in InDesign

GREP (global/regular expression/print) is a way to describe patterns in text. For example, if you want to find a word that starts with a 'D' and ends with a 'G', you can do that with GREP.

Particularly useful for long documents such as books, catalogues or newspapers, the power of GREP can be harnessed to deal with the removal of double spaces after full stops or to apply a style to every string of text inside a set of parenthesis.

GREP works by using a series of codes, known as expressions, to match strings of text, characters or numbers. By combining these codes into expressions, we can create very loose or very precise matches, far beyond the usual 'Find and Replace' functionality. Even better, with InDesign CS4's support for GREP styles we can set up rules that will automatically style match text, even if it's added after you've formatted the document. In this tutorial we're going to set up some automatic formatting for a food and recipe magazine.

Click here to download the support files (3.87MB)

Click here to download the tutorial for free

Thank you for reading 5 articles this month* Join now for unlimited access

Enjoy your first month for just £1 / $1 / €1

*Read 5 free articles per month without a subscription

Join now for unlimited access

Try first month for just £1 / $1 / €1

The Creative Bloq team is made up of a group of design fans, and has changed and evolved since Creative Bloq began back in 2012. The current website team consists of six full-time members of staff: Editor Kerrie Hughes, Deputy Editor Rosie Hilder, Deals Editor Beren Neale, Senior News Editor Daniel Piper, Digital Arts and Design Editor Ian Dean, and Staff Writer Amelia Bamsey, as well as a roster of freelancers from around the world. The 3D World and ImagineFX magazine teams also pitch in, ensuring that content from 3D World and ImagineFX is represented on Creative Bloq.