0

I'm trying to format a keyword(s) that comes after specific string. For example, I want to bold the words, "happy", "sad", and "angry", but only if they are preceded by "be" or "become". This is an example of what I expect to be bolded:

I am happy, but I will be angry soon. Though she is sad now, she will become happy.

I have tried to GREP it like this:

(?<=(be|become).)(happy|sad|angry)

This seems to work on other programs but not Indesign. I could construct the arguments "be" and "become" separately like this: (?<=be)(happy|sad|angry)|(?<=become)(happy|sad|angry), but it's not feasible when there are a lot of strings I need to match.

New contributor
qorinthian is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

0

Your Answer

qorinthian is a new contributor. Be nice, and check out our Code of Conduct.

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.