0 Replies Latest reply on Aug 28, 2016 11:20 PM by Scott Falkner

    GREP style problem when colliding with nested styles

    Scott Falkner Level 6

      I have a GREP style to add ordinals to numbers…




      Works great. But I also have a paragraph style with a drop cap followed by three words in all OT small caps. When the ordinal appears in this location it is lowercase. I want to override it so it is not an ordinal, just small cap numbers.


      I tried…


      (?<= )(?<=\w+)(?<= )(?<=\w+)(?<= )(?<=\d)(st|nd|rd|th)


      Figuring it would apply to any ordinal that was not the first, second, or third word in the paragraph. But it just turns off the ordinals in all cases.


      I think I’m close. I just need a little tweak.