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
Converting All Bullets or Numbering to Text
The best ways to convert all automatic bullets and numbering to live text in a s...
How to Style Text in a Table of Contents in InDesign
Learn how to style your InDesign table of contents entries with entry styles!
How to Find and Fix Partially Italic Words with GREP
You can banish incomplete italics fast with Find/Change and the clever use of a...
