in reply to Re: unicode string comparison (perl 5.26)
in thread unicode string comparison (perl 5.26)

I don't know if that will address the OP's problems:

$ perl -wE'"6\x{0666}\x{07c6}"=~/\D/ or say "All digits"'
All digits
$ perl -Mutf8 -wE'"6٦۶߆६৬੬૬୬௬౬೬൬෬๖໖༦၆႖៦᠖᥌᧖᪆᪖᭖᮶᱆᱖꘦꣖꤆꧖꧶꩖꯶6𐒦𑁬𑃶𑄼𑇖𑋶𑑖𑓖𑙖𑛆𑜶𑣦𑱖𑵖𖩦𖭖𝟔𝟞𝟨𝟲𝟼𞥖6"=~m/\D/ or say "All digits!"'
All digits!

Enjoy, Have FUN! H.Merijn
  • Comment on Re^2: unicode string comparison (perl 5.26)

Replies are listed 'Best First'.
Re^3: unicode string comparison (perl 5.26)
by BillKSmith (Monsignor) on Nov 02, 2019 at 19:00 UTC
    My English/ASCII only background has certainly left me with tunnel vision concerning what is a 'digit'. My algorithm is correct, but the OP will probably have to change the character class to reflect his requirement.
    Bill