Replacing ampersand

Bulk Rename Utility How-To's

Replacing ampersand

Postby cedricm » Wed Feb 23, 2022 11:03 pm

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?
cedricm
 
Posts: 1
Joined: Wed Feb 23, 2022 10:45 pm

Rplace "&" with " and "

Postby Luuk » Wed Feb 23, 2022 11:41 pm

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".
Luuk
 
Posts: 689
Joined: Fri Feb 21, 2020 10:58 pm


Return to How-To