I have 45 maps produced with Atlas. I would like to save them with their names. However, there are character in these names that windows doesn't accept in file name. So, I'm tring to do a expression which replace this kind of characters to "_". I am doing it in output file name expression (panel in Genarate an Atlas).
So, here is my code. It isn't work what I want.
a = lower("field_name") b = '-/"()' #characters to replace -, ", ( and ). for char in a: a = a.replace(char, "_") 'mapa_'||$feature||a