How to Find Text by Location Using GREP in InDesign
Learn how to how to use the power of GREP to find text based on its location—either within the paragraph or in relation to other text.
In this InDesign how-to video, Erica Gamet shows how to use the power of GREP to find text based on its location—either within the paragraph or in relation to other text. Using this technique, she demos finding two digits following a decimal (so she can style the digits as superscript), highlighting the first 10 characters in a paragraph, and finding words that appear just before a question mark. GREP allows you to create expressions that can find patterns of text in your InDesign documents, and then style that text in some way automatically.
This video is an excerpt from the CreativePro course “Introduction to GREP for InDesign.” Learn more about the course here: https://creativepro.com/introduction-to-grep-for-indesign.
This article was last modified on August 29, 2025
This article was first published on May 29, 2023
Commenting is easier and faster when you're logged in!
Recommended for you
Understanding the Stacking Order of Paragraph Rules
Understand how underlines, rules, borders and shading interact when you combine...
Why Word Character Styles Won’t Map Cleanly to InDesign Styles
The ability to map Microsoft Word text styles to InDesign styles is an incredibl...
Variable Fonts in InDesign
A concise Q&A guide to navigating InDesign 2020’s newest tool for type.
