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
Indic and InDesign
A primer on Indic scripts and how to create stunning documents with them in InDe...
InDesign How-to Video: Wrap Text Around Image Edges
In this week’s InDesignSecrets video, Anne-Marie Concepcion shows the easiest wa...
Converting All Bullets or Numbering to Text
The best ways to convert all automatic bullets and numbering to live text in a s...
