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

**URL:** <https://resource.dopus.com/t/how-can-i-rename-multiply-files-with-different-wildcards/50577>\
**Category:** Help & Support\
**Created:** [April 29, 2024, 8:42am UTC](https://resource.dopus.com/t/how-can-i-rename-multiply-files-with-different-wildcards/50577 "2024-04-29T08:42:50Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![lister\_user](https://resource.dopus.com/letter_avatar_proxy/v4/letter/l/97f17d/32.png) [@lister\_user](https://resource.dopus.com/u/lister_user)\
**Post date:** [April 29, 2024, 8:42am UTC](https://resource.dopus.com/t/how-can-i-rename-multiply-files-with-different-wildcards/50577/1 "2024-04-29T08:42:50Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Leo](https://resource.dopus.com/user_avatar/resource.dopus.com/leo/32/69732_2.png) [@Leo](https://resource.dopus.com/u/Leo)\
**Post date:** [April 29, 2024, 8:48am UTC](https://resource.dopus.com/t/how-can-i-rename-multiply-files-with-different-wildcards/50577/2 "2024-04-29T08:48:17Z")

</div>

> [@lister\_user](#):
>
> (eg. "filename-ABC" to "filename" AND "filename-BCD" to "filename" AND "filename-EFG" to "filename".)

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:

> [@Script to perform multiple Regular Expressions](https://resource.dopus.com/t/script-to-perform-multiple-regular-expressions/3384):
>
> Introduction It's fairly common to want to apply several regular expressions to a filename, one after another. While you can do this using several Rename commands in a row, that isn't ideal. Using multiple Rename commands would means you could not …

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.

---

<div class="post-metadata">

**Author:** ![lister\_user](https://resource.dopus.com/letter_avatar_proxy/v4/letter/l/97f17d/32.png) [@lister\_user](https://resource.dopus.com/u/lister_user)\
**Post date:** [April 29, 2024, 9:34am UTC](https://resource.dopus.com/t/how-can-i-rename-multiply-files-with-different-wildcards/50577/3 "2024-04-29T09:34:21Z")

</div>

> 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.

---

<div class="post-metadata">

**Author:** ![lxp](https://resource.dopus.com/user_avatar/resource.dopus.com/lxp/32/33734_2.png) [@lxp](https://resource.dopus.com/u/lxp)\
**Post date:** [April 29, 2024, 9:42am UTC](https://resource.dopus.com/t/how-can-i-rename-multiply-files-with-different-wildcards/50577/4 "2024-04-29T09:42:18Z")

</div>

Try this as a start:

 ![2024-04-29](https://resource.dopus.com/uploads/default/original/3X/2/2/22f24d455863e857b80fa8d305315c23bc4ea114.jpeg)

---

<div class="post-metadata">

**Author:** ![lister\_user](https://resource.dopus.com/letter_avatar_proxy/v4/letter/l/97f17d/32.png) [@lister\_user](https://resource.dopus.com/u/lister_user)\
**Post date:** [May 1, 2024, 9:38am UTC](https://resource.dopus.com/t/how-can-i-rename-multiply-files-with-different-wildcards/50577/6 "2024-05-01T09:38:17Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![khalidhosain](https://resource.dopus.com/user_avatar/resource.dopus.com/khalidhosain/32/28729_2.png) [@khalidhosain](https://resource.dopus.com/u/khalidhosain)\
**Post date:** [May 1, 2024, 11:05am UTC](https://resource.dopus.com/t/how-can-i-rename-multiply-files-with-different-wildcards/50577/7 "2024-05-01T11:05:52Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![lister\_user](https://resource.dopus.com/letter_avatar_proxy/v4/letter/l/97f17d/32.png) [@lister\_user](https://resource.dopus.com/u/lister_user)\
**Post date:** [May 1, 2024, 12:36pm UTC](https://resource.dopus.com/t/how-can-i-rename-multiply-files-with-different-wildcards/50577/8 "2024-05-01T12:36:08Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![fkast](https://resource.dopus.com/user_avatar/resource.dopus.com/fkast/32/26108_2.png) [@fkast](https://resource.dopus.com/u/fkast)\
**Post date:** [May 1, 2024, 12:39pm UTC](https://resource.dopus.com/t/how-can-i-rename-multiply-files-with-different-wildcards/50577/9 "2024-05-01T12:39:18Z")

</div>

![image](https://resource.dopus.com/uploads/default/original/3X/3/3/33e44727f9a221c76776aa608f2826d7e3c47439.png)

---

<div class="post-metadata">

**Author:** ![Leo](https://resource.dopus.com/user_avatar/resource.dopus.com/leo/32/69732_2.png) [@Leo](https://resource.dopus.com/u/Leo)\
**Post date:** [May 1, 2024, 5:59pm UTC](https://resource.dopus.com/t/how-can-i-rename-multiply-files-with-different-wildcards/50577/10 "2024-05-01T17:59:56Z")

</div>

> [@lister\_user](#):
>
> 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.

From `*-(ABC|DEF)` to `*`

---

<div class="post-metadata">

**Author:** ![lister\_user](https://resource.dopus.com/letter_avatar_proxy/v4/letter/l/97f17d/32.png) [@lister\_user](https://resource.dopus.com/u/lister_user)\
**Post date:** [May 2, 2024, 5:48am UTC](https://resource.dopus.com/t/how-can-i-rename-multiply-files-with-different-wildcards/50577/11 "2024-05-02T05:48:44Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![lxp](https://resource.dopus.com/user_avatar/resource.dopus.com/lxp/32/33734_2.png) [@lxp](https://resource.dopus.com/u/lxp)\
**Post date:** [May 2, 2024, 6:19am UTC](https://resource.dopus.com/t/how-can-i-rename-multiply-files-with-different-wildcards/50577/12 "2024-05-02T06:19:38Z")

</div>

You need to switch to regex:

 ![image](https://resource.dopus.com/uploads/default/original/3X/1/a/1a4498f31813aeac644b4962f47735c33d8056ed.png)

---

<div class="post-metadata">

**Author:** ![lister\_user](https://resource.dopus.com/letter_avatar_proxy/v4/letter/l/97f17d/32.png) [@lister\_user](https://resource.dopus.com/u/lister_user)\
**Post date:** [May 2, 2024, 6:50am UTC](https://resource.dopus.com/t/how-can-i-rename-multiply-files-with-different-wildcards/50577/13 "2024-05-02T06:50:19Z")

</div>

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