Page 1 of 1

Replacing ampersand

PostPosted: Wed Feb 23, 2022 11:03 pm
by cedricm
Hello,
How can I replace the ampersand character in a file name in all files of a folder hierarchy?

I tried Replace & With and : not working.
I tried RegEx Match [\&] Replace and : not working

In both examples I'm using Filters with the following options selected: Folders, Files, Subfolders.

Any suggestions?

Rplace "&" with " and "

PostPosted: Wed Feb 23, 2022 11:41 pm
by Luuk
With Replace(3) the settings could be like... Replace==& and With== and .
This not looks for any spaces around "&", so it could invent new-names with too many spaces.

With Regex(1) having a checkmark in 'v2', the settings can be... Match== *& */g and Replace== and .
This to make sure that the new-names always have just 1-space on each side of "and".