Skip to main content
Participant
August 22, 2022
Answered

GREP-Styles | Distinguish between uppercase and lowercase

  • August 22, 2022
  • 2 replies
  • 1445 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 22, 2022

That worked perfectly. First I added it to each individual letter (a, e & t), which didn't work properly. Than I tried adding it at the end of the sequence of the letters which worked perfect. Thank you!