in reply to Normalizing diacritics in (regex) search

You might convert to "fold case", perform "canonical decomposition" and drop all non-graphem-base characters, like

use Unicode::Normalize; say NFD(fc) =~ s/\P{GrBase}//gr for @ARGV
'Älsdjfßüsd' -> 'alsdjfssusd'

Greetings,
🐻

$gryYup$d0ylprbpriprrYpkJl2xyl~rzg??P~5lp2hyl0p$

Replies are listed 'Best First'.
Re^2: Normalizing diacritics in (regex) search
by LanX (Saint) on Nov 25, 2025 at 23:26 UTC
    Clever!

    Not sure if it's always safe with pathological characters, but nice idea! =)

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