Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Counting Upper Case Chars In A Text

$
0
0
I'd like to be able to count the amount of upper case characters in a string.

Some hints or solution to save me an hour (or 2 or 3), please... ;)

Would this be the right thinking?

[ autoit ]      
$array = StringRegExp( $text, "[A-Z]", 3 ) ; or...? $array = StringRegExp( $text, "[[:upper:]]", 3 )

Am I using the right flag?

If correct, then how best to count the number of useful array values?

Thanks!

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>