How to get only upperCase characters

Hey!

How can I only get the uppercase characters in one string?
For example, with this string: “First Letter As GP”, I want to get only: “FLAGP”.

I tried this xaml, but it isn’t working:
GetonlyUpperCaseLetters.xaml (5.3 KB)

Regex.Replace("First Letter As GP","[^A-Z]","")
1 Like

Hi @Aqua1986

Use this:
System.Text.RegularExpressions.Regex.Replace(string_variable,"[^A-Z]","")

1 Like

Hi @Aqua1986 ,

Buddy, here is your workflow…i just made small changes. You were actually good with your design… its working as you expect…

GetonlyUpperCaseLetters.xaml (6.0 KB)
approach

cheers…!

Thank you, guys!

It’s working now! :smiley: