Regex for uppercase (capital) letters

Hi! I’m trying to extract only capital letters from a string. But the problem is, I’m just a beginner and don’t know what should I write as a Matches Pattern. Can anyone help? Thanks in advance.

welcome to the forum

have a try on following pattern:

Thank you very much for your help, but it highlights both lowercase and uppercase letters. What am I doing wrong?

have alook below and unselect Ignore case option



Hope this may help you


1 Like

Hello @EmirY ,

To continue learning about Regex, check this megapost:

I hope it helps.


1 Like

thanks it works

I’ll check it out, thanks :slight_smile:

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.