Skip to main content
Inspiring
May 6, 2026
Answered

How to tweak GREP to avoid specific characters after apostrophe?

  • May 6, 2026
  • 2 replies
  • 28 views

Hi all. I’m presently using a GREP within a style to automatically put words in Title Case. Here’s the GREP:

Apply Style: UPPERCASE to text: \b[\u\l]

However this also puts characters immediately after an apostrophe (ie in the same word) in uppercase, for example UK’S and They’Re. Any way of creating an exemption within my GREP to keep characters immediately after an apostrophe in lower case?

    Correct answer FRIdNGE

    (?<!’)\b[\u\l]

     

    (^/)  The Jedi

    2 replies

    Inspiring
    May 7, 2026

    Magnificent! Thank you. :)

    FRIdNGE
    FRIdNGECorrect answer
    May 6, 2026

    (?<!’)\b[\u\l]

     

    (^/)  The Jedi