Reply To: Grep to ital between commas if it contains an ' and two numbers

Home Page / Forums / General InDesign Topics (CLOSED) / Grep to ital between commas if it contains an ' and two numbers / Reply To: Grep to ital between commas if it contains an ' and two numbers

#89454
Jennifer Morrow
Participant

I know that this is an old post but I am doing the exact same thing (fraternity magazine, same format). I tried pasting in the GREP expression solution provided and it didn’t work for me. I am trying to figure out what I might have done wrong. I added it to my main body paragraph style so that it catches each instance so that I don’t have to worry about a find and replace later.

I had created a GREP expression that worked but only if there is one word (school). In other words, if the school was Ohio, ’11, the school and year became italicized but if it were Ohio State, ’11, then it ignores it. Obviously, I want it to work for both.

Here is the solution I came up with: (,)(\w+~]\d+)(,) I am still rather new to GREP so I am sure it can be written cleaner.

Any help would be most appreciated.

This article was last modified on October 31, 2016

Comments (0)

Loading comments...