beautypg.com

Adobe InDesign CS4 User Manual

Page 203

background image

195

USING INDESIGN CS4

Styles

Using GREP style to format phone numbers with a character style

A. Character style B. GREP expression

For a video tutorial on creating GREP styles, see

www.adobe.com/go/lrvid4028_id

.

1 Do one of the following:

To apply GREP styling to individual paragraphs, select the paragraphs and choose Grep Styles from the
Paragraph or Control panel menu.

To use GREP styles in a paragraph style, create or edit a paragraph style, and click the GREP Styling tab on the
left side of the Paragraph Style Options dialog box.

2 Click New GREP Style.

3 Click to the right of Apply Style, and then specify a character style. If you haven’t created a character style to use,

choose New Character Style and specify the formatting you want to use.

4 Click to the right of To Text and do any of the following to construct a GREP expression:

Enter the search expression manually. (See “

Metacharacters for searching

” on page 156.)

Click the Special Characters For Search icon to the right of the To Text field. Choose options from the Locations,
Repeat, Match, Modifiers, and Posix submenus to help construct the GREP expression.

5 Click OK.

See also

Search using GREP expressions

” on page 152

GREP styles video

B

A

Updated 18 June 2009