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
Comment on Re^3: unicode string comparison (perl 5.26)