Hi,

El mar., 15 may. 2018 a las 9:31, ToddAndMargo (<toddandma...@zoho.com>)
escribió:

> >> 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).
>

Once again, that's not so simple. You don't want other kind of numbers?
Would á count as one a and one '?


> I won't have an weird characters in these stings, such as !@#$^&%(
>

Whoa, whoa, whoa, you calling á and ñ weird?

Anyway, if that's what you want, just filter those precise graphemes and
count the number of graphemes.

Cheers

JJ
-- 
JJ

Reply via email to