I have been tring to replace german letters into English way of writing:
Ä -> Ae
Ü -> Ue
ß -> ss
I tried this way:
re.sub("ö","oe",wordLineElements)
re.sub("Ö","Oe",wordLineElements)
re.sub("ä","ae",wordLineElements)
re.sub("Ä","Ae",wordLineElements)
re.sub("ü","ue",wordLineElements)
re.sub("Ü","Ue",wordLineElements)
re.sub("ß","ss",wordLineElements)
but looks like it does not work, so I need to do it with one re.sub()
what is the regex way of doing it?
and if it's ok, what is a general way of using regex?