I have a list with some thousands strings. Some strings have &
that should be replaced by and
some strings have %
that should be replaced for and so on. There are many rules.
There are some strings with this special character a(ring) that should be replaced by a
lower case.
I am using the follow code:
brnd = 'Acne Studios Blå Konst'
print(brnd.lower().replace(' ','-').replace('.','').replace('%','').replace('\134','a'))
returns acne-studios-blå-konst
desired acne-studios-bla-konst
The a(ring) is still there. What am I missing here? Python 2.7.12