Skip to main content
Participant
August 22, 2022
Answered

GREP-Styles | Distinguish between uppercase and lowercase

  • August 22, 2022
  • 2 replies
  • 1449 views

Is there a way to have a GREP-style only apply to lowercase letters?

 

I first made a charachter style that specified the OpenType set that should be used, than I made a GREP that defines which letters it should apply to. But what I later realised is that it also applies to capital letters. Is there a way to have this only applied to the lowercase letters?

 

Hope my question is clear, help would be greatly appreciated! 

This topic has been closed for replies.
Correct answer Peter Kahrel

\l (that's backslash + lower-case L) matches lower case.

2 replies

hammer0909
Community Expert
Community Expert
August 22, 2022

Peter is right on target with his advice. Just to add to his recommendation, you can also find this by clicking on the @ symbol in the GREP dialog or GREP Styles dialog and choose Wildcards > Any Lowercase Character.

Peter Kahrel
Community Expert
Peter KahrelCommunity ExpertCorrect answer
Community Expert
August 22, 2022

\l (that's backslash + lower-case L) matches lower case.

Participant
August 24, 2022

Come to find out it didn't work as perfect as I first thought. This is how I defined it: a|e|t\l 

This way it works for the 'a' and the 'e'. Just not for the 't'. What am I doing wrong? I'm guessing I should seperate the letters from \l somehow. But since I'm new to GREP-styles I've no clue how.
Hope you can help. Thank you!