Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

getting words that contains diacritics from text

Hi, I have a column with names. Names sometimes consist of several words and I need to extract only the words that have diacritics. For example, from the 1st row "Bühnen/Buehnen/Buhnen", I need to ge...
  • Vijay_A_Verma's avatar
    Vijay_A_Verma
    4 years ago

    Just use Text.Combine additionally.

    NamePartsWDiacriticsOnly = Table.AddColumn(ConvertedNamePartsToList, "Name Parts with Diacritics", each try Text.Combine(List.Select([Name Parts], (x)=>List.ContainsAny(Text.ToList(x),DiacriticsList, Comparer.OrdinalIgnoreCase)),", ") otherwise null)

    Regarding words part, I will come back later as I am trying to have a one line solution for words matching rather than character matching.