Page 1 of 1

Remove special characters from file name

Posted: Tue Sep 18, 2018 9:00 am
by LasseThid
Is there an easy way of getting rid of charachters other than a-z, A-Z, 0-9, - and _ from a filname?

I get a lot of files with names like Länsförsäkringar + 10 mm and I would like to get rid of the letters å, ä and ö, preferably replacing them with a and o respectively and any +, & or comma.

Re: Remove special characters from file name

Posted: Tue Sep 18, 2018 9:09 am
by jan_suhr
Hello Lasse,

In the Rename Job element there is an action called "Reduce character set". It will remove anything than a-zA-Z and replace with underscore, space or nothing.

Re: Remove special characters from file name

Posted: Tue Sep 18, 2018 9:13 am
by jan_suhr
Or just use "Rename job" to search and replace å with a and so on

Re: Remove special characters from file name

Posted: Tue Sep 18, 2018 9:47 am
by LasseThid
Thanks Jan!

Re: Remove special characters from file name

Posted: Wed Sep 19, 2018 3:09 pm
by gabrielp

Re: Remove special characters from file name

Posted: Wed Sep 19, 2018 3:16 pm
by jan_suhr
gabrielp wrote: Wed Sep 19, 2018 3:09 pm If you like scripts https://github.com/open-automation/swit ... e-scrubber
Make an app of it :-)