Uppercase Condition

Hello Forum,
I need to create a condition which checks if the firts letter of the firts word of a sentence starts with an uppercase. I’ve been a while stuck on this one.

Thanks!

1 Like

hey

please check this example
image

output = System.Text.RegularExpressions.Regex.Matches(stringVariable,“[A-Z]”).Count.ToString

hope it help

regards!

Hey @Luis_Fernando

You can do the below,

Char.IsUpper(str_Variable(0))

The above statement takes the first character from the string data stored in your str variable to check if it’s an upper case character and provides a Boolean output.

Hope this helps

Thanks
#nK

1 Like

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