I want to replace all the occurrences of accented characters À, Á, Â, Ã, Ä, Å with "A" using javascript replace ( For example, "ÀNÁPIÂLÃZÄ" would be rendered to "ANAPIALAZA"). I tried:
var re = /À||Á||À||Á||Â||Ã||Ä||Å/g;
name = name.replace(re,"A");
and
var re = /(ÀÁÂÃÄÅ)/g;
name = name.replace(re,"A");
I not sure how to express the desired rule in regex pattern. Thanks
/[abc]/gmeans anyaorborc.ÀÁ(not sure about other characters, but it may also applies): either a single character, or a base character plus a combining diacritics.