I have two variables in a running footer with the left and right pages having each in a different place. I was able to use a GREP style in the footer right paragraph style to apply formatting to only one of the variables and it works fine. I cannot seem to get it to work for the footer left and have tried various options of look behind expressions.
This grep expression works:
^.+?|
The “|” character is part of the variable, yet the style is applied as expected.
I need to find the second variable which follows two “|” characters–also part of the variable.
These options don’t work:
*pplies the style to both variables
(?<=~Y)
*\does nothing
(?<=\|.*?\|).+
*\does nothing presumably because the “|” is part of the variable
(?<=\|~Y\|).+
*\does nothing presumably because it’s not looking for the text between the “|”
(?<=\|\|).+