Reply To: What is the GREP code to select the first 2 words and the space afterwards?

Home Page / Forums / InDesign Add-ons (Scripts, Scripting, and Plug-ins) / What is the GREP code to select the first 2 words and the space afterwards? / Reply To: What is the GREP code to select the first 2 words and the space afterwards?

#116974
Jeremy Howard
Participant

While this is certainly possible through GREP, the more simple solution would be to use nested styles. Apply character style x through 2 words.

That being said, this would be the GREP string to use:

^(\<.*?\>){2}

This article was last modified on May 31, 2019

Comments (0)

Loading comments...