Posts by Paulo Costa • 11 points
1 post
-
1
votes2
answers1925
viewsA: How to count how many uppercase characters are in a string?
You can do this using regular expression. Import the namespace System.Text.Regularexpressions; var str = "Paulo Costa"; var count = Regex.Matches(str, "[A-Z]").Count;…
c#answered Paulo Costa 11