in reply to Re: uc and German eszett "ß" (Unicode standard)
in thread uc and German eszett "ß"

//i is equally acceptable.

That's why qr/(?<=ss)x/ui fails in versions of Perl without experimental (and buggy) variable look-behinds. /u is added by use feature qw( unicode_strings ); since 5.14, and thus by use v5.14; and higher.

Also,

$ perl -Mre=debug -e'qr/[abc\xDF]/ui' Compiling REx "[abc\xDF]" ~ tying lastbr BRANCH (4) to ender TAIL (15) offset 11 ~ tying lastbr BRANCH (1) to ender END (16) offset 15 Final program: 1: BRANCH (4) 2: EXACTFUP <ss> (16) 4: BRANCH (FAIL) 5: ANYOF[ABCabc] (16) 15: TAIL (16) 16: END (0) minlen 1 Freeing REx: "[abc\xDF]"

Replies are listed 'Best First'.
Re^3: uc and German eszett "ß" (Unicode standard)
by LanX (Saint) on Feb 04, 2022 at 17:08 UTC
    I think fc and //i should have the same inner semantics.

    But //i doesn't help in our case since we needed hash-keys.

    Anyway this was already solved on another level ...

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery

      I think fc and //i should have the same inner semantics.

      They do. That's literally the point of the message to which you replied.

      Anyway this was already solved on another level ...

      I wasn't proposing a solution; I was contradicting the claim that «fc is the only acceptable solution for comparing "case insensitive strings".»

        > fc is the only acceptable solution

        my point was: if its the same, there is only one way

        > That's literally the point ...

        Let's agree to agree.

        Cheers Rolf
        (addicted to the Perl Programming Language :)
        Wikisyntax for the Monastery