GREP search: change style within parentheses
I have a document that includes long lists of names, many of which are followed by words in parentheses that need to have a certain character style applied (but the parentheses remain unstyled). Several years ago I asked if there is a GREP search that can accomplish this, and I received an answer from Nigel Chapman that worked:
Because you want to exclude the brackets from the matched string, you need to use look-behind and look-ahead. It isn't pretty. Search for
(?<=\()[^)]+(?=\))
Set the replacement to
$0
and set the Change Format to your character style.
It doesn't seem to be working now. Should this still accomplish what I need, or is there a change to the Find or Change To strings I need to make?
Mac OS 12.4
InDesign 17.3
Thanks
