Reply To: GREP, how to select everything except a specific word

Home Page / Forums / InDesign User Groups / GREP, how to select everything except a specific word / Reply To: GREP, how to select everything except a specific word

#90357
Donna Morris
Member

newbie with Grep and InDesign.. Loving it to control styling. This was the closest clue I could find in the forum. BUT I need the whole string with a changing number.

I need to apply specific styling — mostly changing the font size. I have three styles working.
SOLD (?-i)(SOLD)
JUST LISTED (?-i)(JUST LISTED)
UNDER CONTRACT (?-i)(UNDER CONTRACT)
This will be feed as data to my text — and I can control that the above will always be this text.

Problem:
I need a different font size for “UNDER CONTRACT IN 23 DAYS” & “SOLD IN 23 DAYS” — the number of days may change.
I need to create GREP to find those strings even when the number of days is different. — Right now it only works if I type in “UNDER CONTRACT IN 23 DAYS” exactly I can’t get it to work if the number changes. The style needs to be applied to the entire string.

Thanks in advance for anyone who can shed some light :-)

This article was last modified on December 7, 2016

Comments (0)

Loading comments...