How do I remove invalid characters from a filename?

Advanced Renamer forum
#1 : 29/10-11 18:13
Zaphod Breeblebrox
Zaphod Breeblebrox
Posts: 1
Specifically I have a file with a question mark in it. I need to remove that so Windows can manipulate the file.


29/10-11 18:13
#2 : 29/10-11 21:37
Kim Jensen
Kim Jensen
Administrator
Posts: 800
Reply to #1:
You can use the replace method to replace one character with another.

Read more about it here:
http://www.advancedrenamer.com/docs/docs_show.p hp?ident=method_replace


29/10-11 21:37
#3 : 15/01-13 18:50
ugur
ugur
Posts: 1
Reply to #2:

Hello, I know this is an old thread, but I need to know what expression to put in order to remove all illegal characters from a word.

I tried with [<>:"/\*?] but it deosn't seem to work with < and > characters. what is the escape character? in the windows it is said that \ is expression separator whereas normal escape character.

Thanks


15/01-13 18:50
#4 : 15/01-13 20:34
Stefan
Stefan
Posts: 264
Reply to #3:

Generally the regex escape char is '\'



.

----------
If this tool had saved you time, perhaps you want to donate an Dollar to Kim?
See http://www.advancedrenamer.com/download >>> [Donate] button.


15/01-13 20:34