Copy link to clipboard
Copied
I'm sure to have already asked this but I cannot find it anywhere, nor on search engines.
In a music-related text, I need to show the octave of a note with a subscript digit.
So, the middle-C on the piano would be C3 with 3 being subscripted.
I am trying this GREP but it's not working:
(?<=[A-G])\d
This should be positive lookbehind for uppercase letters A to G, then applying the character style to the single digit following it.
Any idea why this may not be working?
Thank you!
It works perfectly for me. Are you sure that the character style you apply via the GREP syntax is properly set?
I don't know what happened, but I just re-typed the full string of your GREP style it it works now.
Copy link to clipboard
Copied
It works perfectly for me. Are you sure that the character style you apply via the GREP syntax is properly set?
Copy link to clipboard
Copied
Here is the Character Style (there is nothing else needed but Subscript):
And here is the Paragraph Style's GREP page:
And here is the result I get (that is, nothing):
Copy link to clipboard
Copied
Copy link to clipboard
Copied
I don't know what happened, but I just re-typed the full string of your GREP style it it works now.
Copy link to clipboard
Copied
Woah! That worked for me too!
Unbelievable but, as a Jedi Master would say, "that's why you failed"! 😂
Thank you!
Find more inspiration, events, and resources on the new Adobe Community
Explore Now