Just a quick reminder that <alnum> matches the underscore, because <alpha>
also does.  If you want to exclude underscores, you can match against
/<+alnum-[_]>/.  That adds the alnum character class, but subtracts
underscores from it.   Decimal points are definitely not alphanumeric,
though.

On Tue, May 15, 2018 at 1:22 AM, JJ Merelo <jjmer...@gmail.com> wrote:

>
>
> El mar., 15 may. 2018 a las 10:17, ToddAndMargo (<toddandma...@zoho.com>)
> escribió:
>
>> On 05/15/2018 12:57 AM, JJ Merelo wrote:
>> > Well,
>> > say + "abcrd-12.3.4".comb.grep: /<alnum>/
>> > will give you that, but
>> > say + "abcñé-12.3.4".comb.grep: /<alnum>/
>> > will yield the same result.
>> > Roman or other kind of numerals are excluded, though...
>>
>>
>> $ perl6 -e 'say + "abcrd-12.3.4".comb.grep: /<alnum>/;'
>> 9
>>
>> I don't understand.
>>
>> What does `/<alnum>/` do?  Is that a regex?
>>
>
> Correct. It's the alphanumeric character class.
>
>
> --
> JJ
>

Reply via email to