Search using grep expressions – Adobe InDesign CS5 User Manual
Page 171
165
USING INDESIGN
Text
Last updated 11/16/2011
Include Hidden Layers
Searches for text on layers that have been hidden using the Layer Options dialog box. When
text on a hidden layer is found, you can see highlighting where the text appears, but you cannot see the text. You can
replace text on hidden layers.
Text in a hidden condition is always omitted from searching.
Include Master Pages
Searches for text on master pages.
Include Footnotes
Searches footnote text.
Case Sensitive
Searches for only the word or words that exactly match the capitalization of the text in the Find
What box. For example, a search for PrePress won’t find Prepress, prepress, or PREPRESS.
Whole Word
Disregards search characters if they are part of another word. For example, if you search for any as a
whole word, InDesign disregards many.
Search using GREP expressions
On the GREP tab of the Find/Change dialog box, you can construct GREP expressions to find alphanumeric strings
and patterns in long documents or many open documents. You can enter the GREP metacharacters manually or
choose them from the Special Characters For Search list. GREP searches are case-sensitive by default.
InDesign Secrets provides a list of GREP resources at
1 Choose Edit > Find/Change, and click the GREP tab.
2 At the bottom of the dialog box, specify the range of your search from the Search menu, and click icons to include
locked layers, master pages, footnotes, and other items in the search.
3 In the Find What box, do any of the following to construct a GREP expression:
•
Enter the search expression manually. (See “
•
Click the Special Characters For Search icon to the right of the Find What option and choose options from the
Locations, Repeat, Match, Modifiers, and Posix submenus to help construct the search expression.
4 In the Change To box, type or paste the replacement text.
5 Click Find.
6 To continue searching, click Find Next, Change (to change the current occurrence), Change All (a message indicates
the total number of changes), or Change/Find (to change the current occurrence and search for the next one.
You can also use GREP Styles to apply a character style to text that conforms to a GREP expression. In fact, the GREP
Styles dialog box is a good way to test your GREP expression. Add the examples you want to find to a paragraph, and
then specify a character style and GREP expression in the GREP Styles dialog box. When you turn on Preview, you can
edit the expression until it affects all your examples properly.
More Help topics