Skip to main content
Inspiring
May 6, 2026 2:12 PM UTC
Answered

How to tweak GREP to avoid specific characters after apostrophe?

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?

    FRIdNGE
    FRIdNGECorrect answer
    May 6, 2026 4:13 PM UTC

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

     

    (^/)  The Jedi

    2 replies

    Inspiring
    May 7, 2026 9:18 AM UTC

    Magnificent! Thank you. :)

    Translate
    FRIdNGE
    FRIdNGECorrect answer
    May 6, 2026 4:13 PM UTC

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

     

    (^/)  The Jedi

    Translate