conditional GREP formatting
We need to add conditional GREP formatting. For eg. in screen 1 (yellow highlighted text) tagged in xml, and are able capture with GREP styling. But when we put condition, it also captures unwanted text in same GREP style (cyan highlighted), tagged with same xml tag. It would be great as conditional text, i.e.. "IF x=y then DO 'this'" OTHERWISE APPLY 'this style'.
If such option available in indesign, it would be a great help as we are doing frontend xml publishing.
-
Jim commented
You might want to explain this a little further as to what the differences are between what is highlighted in yellow vs. what is highlighted in blue. Based on your example, is the blue highlighting for text between parenthesis that are only a year and nothing else? If yes, then would it solve your issue to make a 2nd GREP style that calls out instances of just 4 digits between parenthesis to make them blue; and adjust your first GREP to only be used when there is more than just 4 digits?