in reply to Re: UTF8 versus \w in pattern matching
in thread UTF8 versus \w in pattern matching
Swapping out the value of $a with "/i/\N{LATIN SMALL LETTER A WITH ACUTE}\N{LATIN SMALL LETTER E WITH ACUTE}\N{LATIN SMALL LETTER I WITH ACUTE}\N{LATIN SMALL LETTER O WITH ACUTE}\N{LATIN SMALL LETTER U WITH ACUTE}z/pl" gives me the same output as before on my setups, both with use utf8; and without: the diacriticals are not matched by \w either way. If it matters, it is perl 5, version 32, subversion 1 (v5.32.1) built for x86_64-linux-gnu-thread-multi on Ubuntu 21.04 on the one system and perl 5, version 28, subversion 1 (v5.28.1) built for arm-linux-gnueabihf-thread-multi-64int on Raspbian GNU/Linux 10 (buster).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: UTF8 versus \w in pattern matching
by hippo (Archbishop) on Jul 06, 2021 at 10:57 UTC | |
by mldvx4 (Hermit) on Jul 06, 2021 at 11:48 UTC | |
by hippo (Archbishop) on Jul 06, 2021 at 12:20 UTC | |
by mldvx4 (Hermit) on Jul 06, 2021 at 12:33 UTC | |
by hippo (Archbishop) on Jul 06, 2021 at 12:47 UTC | |
|