El mar., 15 may. 2018 a las 8:32, ToddAndMargo (<toddandma...@zoho.com
<mailto:toddandma...@zoho.com>>) escribió:
Hi All,
Do we have one of those sweet functions that will
allow us to look at a string and give us back the
count of how many "letters" and/or "numbers" are
in a string?
And are decimal points considered numbers or letters?
Many thanks,
-T
On 05/14/2018 11:44 PM, JJ Merelo wrote:
IN Perl 6, it's a bit more complicated. Do you want to count graphemes
or codepoints?
I want to know the number of letters A..Z (ascii 65..90), a..z
(ascii 97..122),
and the numbers of numbers 0..9 (ascii 48..57) and decimal points
(ascii 46).
I won't have an weird characters in these stings, such as !@#$^&%(