Beginner GREP Style: Match a Phrase


hello,

 

i'm trying learn wonderful types of styles available in indesign project i'm working on. i'm using indesign cs5. have character style makes characters become smallcaps. want use character style grep style in paragraph style.

 

within paragraph, if there character strings match "mm" or "ct" or "ct tw", use smallcaps character style.

 

i got "to text" field say: (mm|ct|tw).

 

the problem have words "twin" in paragraph don't want small caps affect, want (mm|ct|ct tw), doesn't work.

 

i know can make second grep style "ct tw", i'm hoping there's way make in 1 declaration. i'm sure extremely simple syntax fix, i'm new grep, pointers appreciated!

 

thanks!

in jewelry biz, we?  think expression should work: \b(tw|mm|ct)\b  (feel free rearrange order inside parentheses). \b word boundary, match if there no other characters on either side.



More discussions in InDesign


adobe

Comments

Popular posts from this blog

How to set the order of FAQs instead of alphabetical

Thread: Get UK Keyboard working

how do I change the e-mail address for my merchant account