# Replace multiple values with one action?

**URL:** <https://community.mp3tag.de/t/replace-multiple-values-with-one-action/60165>\
**Category:** Support\
**Created:** [February 22, 2023, 10:37am UTC](https://community.mp3tag.de/t/replace-multiple-values-with-one-action/60165 "2023-02-22T10:37:42Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![bigcitydealer](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/73ab20/32.png) [@bigcitydealer](https://community.mp3tag.de/u/bigcitydealer)\
**Post date:** [February 22, 2023, 10:37am UTC](https://community.mp3tag.de/t/replace-multiple-values-with-one-action/60165/1 "2023-02-22T10:37:42Z")

</div>

Is there a way to replace multiple items with one action once set up rather than selecting "Original" "Replace With" multiple times?

Thanks

---

<div class="post-metadata">

**Author:** ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)\
**Post date:** [February 22, 2023, 10:41am UTC](https://community.mp3tag.de/t/replace-multiple-values-with-one-action/60165/2 "2023-02-22T10:41:43Z")

</div>

You could use an action of the type "Format value" e.g. for TITLE  
Format string: $replace(%title%,Water,Wine,air,love)  
with up to 32 pairs.

---

<div class="post-metadata">

**Author:** ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)\
**Post date:** [February 22, 2023, 10:51am UTC](https://community.mp3tag.de/t/replace-multiple-values-with-one-action/60165/3 "2023-02-22T10:51:00Z")

</div>

What exactly do you mean with "replace multiple items with one action"?

Do you want to replace all occurences of  
`UnwantedText`  
in every tag with  
`NewText`  
?

Could you please give us a real example to better understand what you try to achieve?

---

<div class="post-metadata">

**Author:** ![bigcitydealer](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/73ab20/32.png) [@bigcitydealer](https://community.mp3tag.de/u/bigcitydealer)\
**Post date:** [February 22, 2023, 4:11pm UTC](https://community.mp3tag.de/t/replace-multiple-values-with-one-action/60165/4 "2023-02-22T16:11:51Z")

</div>

Hi  
With one action I want to replace unwanted text aaa with bbb, ccc with ddd. eee with fff etc.

Thanks

---

<div class="post-metadata">

**Author:** ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)\
**Post date:** [February 22, 2023, 4:26pm UTC](https://community.mp3tag.de/t/replace-multiple-values-with-one-action/60165/5 "2023-02-22T16:26:12Z")

</div>

If you want to replace this pairs in the tag TITLE, @ohrenkino wrote above how to do it.

---

<div class="post-metadata">

**Author:** ![bigcitydealer](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/73ab20/32.png) [@bigcitydealer](https://community.mp3tag.de/u/bigcitydealer)\
**Post date:** [February 22, 2023, 5:07pm UTC](https://community.mp3tag.de/t/replace-multiple-values-with-one-action/60165/6 "2023-02-22T17:07:46Z")

</div>

Sorry I'm not very technically minded...  
Can somebody show me the format string please?

In this filename:  
[YT2mp3.info] - Special Delivery - This Kind Of Love (320kbps).mp3

I want to replace both [YT2mp3.info] and (320kbps) with blanks (delete them)

Thanks

---

<div class="post-metadata">

**Author:** ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)\
**Post date:** [February 22, 2023, 5:15pm UTC](https://community.mp3tag.de/t/replace-multiple-values-with-one-action/60165/7 "2023-02-22T17:15:23Z")

</div>

> [@bigcitydealer](#):
>
> [YT2mp3.info] - Special Delivery - This Kind Of Love (320kbps).mp3  
> I want to replace both [YT2mp3.info] and (320kbps) with blanks (delete them)

`$replace(%_FILENAME%,'[YT2mp3.info]',,'(320kbps)',)`

But this will leave a Space and the - behind. Are you sure that you don't want to remove them too?  
I assume, you want to get this result:  
`Special Delivery - This Kind Of Love.mp3`  
?  
Then it would be:  
 ![image](https://community.mp3tag.de/uploads/default/original/2X/0/034e79190b5215e30e5388fa522e68991686dad4.png)  
`$replace(%_FILENAME%,'[YT2mp3.info] -',,' (320kbps)',)`

---

<div class="post-metadata">

**Author:** ![MotleyG](https://community.mp3tag.de/user_avatar/community.mp3tag.de/motleyg/32/440_2.png) [@MotleyG](https://community.mp3tag.de/u/MotleyG)\
**Post date:** [February 22, 2023, 5:21pm UTC](https://community.mp3tag.de/t/replace-multiple-values-with-one-action/60165/8 "2023-02-22T17:21:37Z")

</div>

This is the file name. Do you already have the tag info stored in the other fields?

From this example file,

> [@bigcitydealer](#):
>
> [YT2mp3.info] - Special Delivery - This Kind Of Love (320kbps).mp3

I see some [file info] - %artist% - %title% (sample rate).mp3

If you need to save this info to the correct tags, you could use the Action (Quick);  
Guess Values  
Source format: `%_filename%`  
Guessing pattern: `[%dummy%] - %artist% - %title% (%dummy)`

If you also want to keep the other details like the source and sample rate, you can replace the `%dummy%` placeholders above with the correct fields you want to use as well.

If you already have these values that you prefer to use, you can instead recreate the file names from the tags using the Converter\>Filename - Tag (or use Alt+2) that has a preview, and use the string `%artist% - %title%` there.

---

<div class="post-metadata">

**Author:** ![bigcitydealer](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/73ab20/32.png) [@bigcitydealer](https://community.mp3tag.de/u/bigcitydealer)\
**Post date:** [February 22, 2023, 5:25pm UTC](https://community.mp3tag.de/t/replace-multiple-values-with-one-action/60165/9 "2023-02-22T17:25:29Z")

</div>

> [@LyricsLover](#):
>
> $replace(%\_FILENAME%,'[YT2mp3.info] -',,' (320kbps)',)

Sorry yes, you are right, the above is what I wanted to achieve and it works.

Thank You

---

<div class="post-metadata">

**Author:** ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)\
**Post date:** [February 22, 2023, 5:30pm UTC](https://community.mp3tag.de/t/replace-multiple-values-with-one-action/60165/10 "2023-02-22T17:30:28Z")

</div>

Thank you for the feedback.

Just remember: Once deleted, you can't get back the deleted informations that easy.  
Therefore I would think about to save all helpful information from filenames into your tags first (if not already done...)  
As explained by @MotleyG in his answer.

---

<div class="post-metadata">

**Author:** ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)\
**Post date:** [March 24, 2023, 5:31pm UTC](https://community.mp3tag.de/t/replace-multiple-values-with-one-action/60165/11 "2023-03-24T17:31:11Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
