Reply To: Using GREP in paragraph style to format only the first occurrence of a phrase

Home Page / Forums / General InDesign Topics (CLOSED) / Using GREP in paragraph style to format only the first occurrence of a phrase / Reply To: Using GREP in paragraph style to format only the first occurrence of a phrase

#100304
John Tierney
Member

Thanks for your help but still doesn’t seem to be working. I tried those three GREP ideas but they don’t cover every instance. You see sometime it will say something like:

Product name and description $12.00 • Made from a durable unobtanium™ Metal Frame® • Lightweight and folds flat for easy storage • choose from jute or black polyester bag $120.00 per 10 • Made in China. $12.00 ea.

Sometimes:

Product name and description $12.00 • Made from a durable unobtanium™ Metal Frame® • Lightweight and folds flat for easy storage. $12.00.

There may be many different ways for a price to appear within the body of the paragraph after the first bullet point.

EDIT: And, yes, you are right of course about the formatting of the second price. That is exactly the point. I want to be able to format the second price if I want to but just leave it unformatted if I choose to. I want the second price to only format if it has the word “per” as part of the price string. Getting that bit was easy the problem was that it was formatting even without the word “per” in it. The price always formats just like it does in the first instance. I thought it would have been an easy thing to work out but clearly not.

This article was last modified on December 12, 2017

Comments (0)

Loading comments...