How can I rename multiply files with different "wildcards"?

Hello,

I am using DOPUS 13 and I need to rename many different files.
I managed to find the shortcut option (creating a preset), but it currently only works for one wildcard.

(eg. "filename-ABC" to "filename")

I would like to have a shortcut that can rename multiple options at once

(eg. "filename-ABC" to "filename" AND "filename-BCD" to "filename" AND "filename-EFG" to "filename".)

How can I achieve that?

Many thanks in advance.

If that's literally the wildcards you need, it can easily be done using a single wildcard pattern or regex.

For the more general case where it can't, if you want a single rename preset for it then scripting is the way to go:

If the aim is to have a toolbar button or hotkey, those can run multiple rename presets (or multiple rename commands where the details are all in the button and don't use a preset at all) if needed.

easily be done using a single wildcard pattern or regex

Sorry, I am a total noob and you lost me at "wildcard pattern".
Do you maybe have an example that I could adapt to my needs?

Many thanks.

Try this as a start:

Juat tried it, did not work that simple, because "filename" are of course different names that do not match.

For matching wildcard or regular expression the man need your original file names who wants to help you, because regular expression pattern matching is so not very similar for all file name case. It will very different from case to case. so original real file name will help I think.

Hm, that will not be possible, because the filenames itself will change all the time, only the ending that I want to delete will be the same.

I have a renaming shortcut for something like "*-ABC", then I could do another for *-DEF" and so on, but I thought it might be possible to rename different endings at once.

image

From *-(ABC|DEF) to *

Wow, now this seems to be a possible solution.
However, I tried to re-create it, but I cannot enter the | symbol into the "old name" bar field?
Even when copy and pasting your line, I can paste it into the field, but it shows up as *-(ABCDEF) without the |. I can enter the | in other programs without problems.

Am I doing something wrong?

You need to switch to regex:

thanks! that finally worked.
Many thanks for all your help!