# Replace and delimiter

**URL:** https://community.mp3tag.de/t/replace-and-delimiter/52862
**Category:** Fixed Bugs
**Tags:** bug-fixed
**Created:** [April 17, 2021, 10:06am UTC](https://community.mp3tag.de/t/replace-and-delimiter/52862 "2021-04-17T10:06:50Z")
**Posts on this page:** 15
**Page:** 1

<div class="post-metadata">

### Author: ![CarlosLosTopografos](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/8e8cbc/32.png) [@CarlosLosTopografos](https://community.mp3tag.de/u/CarlosLosTopografos)
#### Post date: [April 17, 2021, 10:06am UTC](https://community.mp3tag.de/t/replace-and-delimiter/52862/1 "2021-04-17T10:06:50Z")

</div>

Not sure whether its a bug or not.

I have created a set of actions to split the entries I got from Discogs into multiple entries. I use it mainly for artists, composers and mainly genres. From discogs i get them comma separated. The delimiter at mp3Tag is the double backslash to seperate the entries. But when use a regex replace action its saved including the delimiter. Let me show a screenshot. This is the result after the regex replace action.

 ![delimiter_01](https://community.mp3tag.de/uploads/default/original/2X/1/1fc0b266ab7492d313aa44ff26ee2c9a0df1421b.jpeg)

The tag is saved including the double backslash instead of two genre entries. After saving it again via Strg+S it is split into two entries. The most strange thing is. The resave does work only with one or a few selected files. Mark all (Strg+A followed by Strg+S) does not work - maybe because the tag contains mixed entries and shows "keep entry". So, If I want to split the entries of many albums I can use my replace action but have to save the single files (or at least every album) separately.

Any idea?

 ![delimiter_02](https://community.mp3tag.de/uploads/default/original/2X/6/686821f66eccad720c8f0f15c71a6f1710324785.jpeg)

---

<div class="post-metadata">

### Author: ![CarlosLosTopografos](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/8e8cbc/32.png) [@CarlosLosTopografos](https://community.mp3tag.de/u/CarlosLosTopografos)
#### Post date: [April 17, 2021, 10:23am UTC](https://community.mp3tag.de/t/replace-and-delimiter/52862/2 "2021-04-17T10:23:10Z")

</div>

In my case it would be nice to have the entries split when replacing it, because its saved in this action anyway

---

<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: [April 17, 2021, 3:48pm UTC](https://community.mp3tag.de/t/replace-and-delimiter/52862/3 "2021-04-17T15:48:38Z")

</div>

If you know by which character you want to split the field, why don't you use an action of the type "Split field by separator" as shortcut anyway?

I agree that this looks a little weird. But it could also be that if you add the separator in an action, you would also need to execute an action of the type "Split field"...  
But to be honest:  
I could not reproduce it.  
I just used Converter\>Tag-Tag for TITLE with the following format strings:  
`$replace(%title%, ,\\)`  
`$regexp(%title%, ,\\\)`  
and in both cases I got several fields of the type TITLE straight away.

---

<div class="post-metadata">

### Author: ![poster](https://community.mp3tag.de/user_avatar/community.mp3tag.de/poster/32/4881_2.png) [@poster](https://community.mp3tag.de/u/poster)
#### Post date: [April 17, 2021, 4:08pm UTC](https://community.mp3tag.de/t/replace-and-delimiter/52862/4 "2021-04-17T16:08:57Z")

</div>

> [@ohrenkino](#):
>
> I could not reproduce it.

You can reproduce it with a simple replace action.

I knew an additional save was required. What I did not know is the problem with selecting multiple files. I think that's kind of a bug.

---

<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: [April 17, 2021, 6:21pm UTC](https://community.mp3tag.de/t/replace-and-delimiter/52862/5 "2021-04-17T18:21:37Z")

</div>

Yes, you are right.  
So: converter splits the field,  
action does not.  
Saving several unsplit fields also does not split.

---

<div class="post-metadata">

### Author: ![CarlosLosTopografos](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/8e8cbc/32.png) [@CarlosLosTopografos](https://community.mp3tag.de/u/CarlosLosTopografos)
#### Post date: [April 18, 2021, 12:21pm UTC](https://community.mp3tag.de/t/replace-and-delimiter/52862/6 "2021-04-18T12:21:37Z")

</div>

The "split field" seems to work, bit only with one character, if I noticed right. If a set a string as delimiter it's split at any charavcter of the given delimiter. Discogs delivers the genres and styles as a comma followed by a space. Maybe a combination of actions could help.

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [April 18, 2021, 12:28pm UTC](https://community.mp3tag.de/t/replace-and-delimiter/52862/7 "2021-04-18T12:28:15Z")

</div>

I'll look into this issue — it's always very exciting to touch these parts that are working as they do since many years. Changing something there, even if it's a fix for a valid bug report, needs a lot of testing.

---

<div class="post-metadata">

### Author: ![CarlosLosTopografos](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/8e8cbc/32.png) [@CarlosLosTopografos](https://community.mp3tag.de/u/CarlosLosTopografos)
#### Post date: [April 18, 2021, 12:37pm UTC](https://community.mp3tag.de/t/replace-and-delimiter/52862/8 "2021-04-18T12:37:20Z")

</div>

I just used the "splitting item" to separate two artists by splitting at every " feat. ". What a bad idea.: I got "Puls\r\M\B\nc\ft" .. or sth.. hahaha..

I need this very often becaus all the DJ artists albums with guest singers produce a huge amount of artists in my database which drives me nuts. "DJ foo feat. bar" a thousand times. So I prefer two separate artist tags.

---

<div class="post-metadata">

### Author: ![CarlosLosTopografos](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/8e8cbc/32.png) [@CarlosLosTopografos](https://community.mp3tag.de/u/CarlosLosTopografos)
#### Post date: [April 18, 2021, 12:42pm UTC](https://community.mp3tag.de/t/replace-and-delimiter/52862/9 "2021-04-18T12:42:35Z")

</div>

Just to get an impression what I am about to tidy up in my music player

this is the result before I noticed athe "replace effect"

![genres](https://community.mp3tag.de/uploads/default/original/2X/a/ae1fb11f37d33e95d5c5fee7925fc8cc7e9729d8.jpeg)

And this ist my mentioned "feat." problem. I need only one "Armin van Buuren". And unfortunately the player on my smartphone can not sort by "albumartist". And If i want to see a list of all track a singer sung, its very useful to split all these " feat. " entries into two artists

 ![artists](https://community.mp3tag.de/uploads/default/original/2X/e/ebaeea25e949880d5ee47f1988a50ed6347d6ddd.jpeg)

---

<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: [April 18, 2021, 5:49pm UTC](https://community.mp3tag.de/t/replace-and-delimiter/52862/10 "2021-04-18T17:49:57Z")

</div>

> [@CarlosLosTopografos](#):
>
> And unfortunately the player on my smartphone can not sort by "albumartist".

On Android, both Poweramp and Gonemad can use AlbumArtist. Poweramp has the ability to split artists by any defined separator.

---

<div class="post-metadata">

### Author: ![CarlosLosTopografos](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/8e8cbc/32.png) [@CarlosLosTopografos](https://community.mp3tag.de/u/CarlosLosTopografos)
#### Post date: [April 21, 2021, 10:03am UTC](https://community.mp3tag.de/t/replace-and-delimiter/52862/11 "2021-04-21T10:03:29Z")

</div>

Great. just installed Poweramp.

Thanks

---

<div class="post-metadata">

### Author: ![CarlosLosTopografos](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/8e8cbc/32.png) [@CarlosLosTopografos](https://community.mp3tag.de/u/CarlosLosTopografos)
#### Post date: [April 21, 2021, 7:44pm UTC](https://community.mp3tag.de/t/replace-and-delimiter/52862/12 "2021-04-21T19:44:48Z")

</div>

This ist my first version of an action set for tags I got from discogs. Removing the artist numbers, copy the artist to albumartist and then separating the genres and styles.

This one can handle splitting at strings containing more than one letter and works without saving again afterwards. thanks for mentioning the splitting feature.

 ![actions](https://community.mp3tag.de/uploads/default/original/2X/0/097dcc54c1644146ec7db1f202012e7eb377316e.jpeg)

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [April 23, 2021, 12:32pm UTC](https://community.mp3tag.de/t/replace-and-delimiter/52862/13 "2021-04-23T12:32:53Z")

</div>

I've fixed this with [Mp3tag v3.06f](https://community.mp3tag.de/t/455) where multiple-fields separators resulting from replace actions should be now correctly expanded into multiple fields.

---

<div class="post-metadata">

### Author: ![CarlosLosTopografos](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/8e8cbc/32.png) [@CarlosLosTopografos](https://community.mp3tag.de/u/CarlosLosTopografos)
#### Post date: [April 23, 2021, 3:20pm UTC](https://community.mp3tag.de/t/replace-and-delimiter/52862/14 "2021-04-23T15:20:57Z")

</div>

Thats great, thanks.

---

<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: [May 23, 2021, 3:21pm UTC](https://community.mp3tag.de/t/replace-and-delimiter/52862/15 "2021-05-23T15:21:11Z")

</div>

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