# Mp3tag won't replace \\\\\\ with \\ in tag Genre

**URL:** https://community.mp3tag.de/t/mp3tag-wont-replace-with-in-tag-genre/19263
**Category:** Support
**Created:** [August 24, 2017, 3:02am UTC](https://community.mp3tag.de/t/mp3tag-wont-replace-with-in-tag-genre/19263 "2017-08-24T03:02:11Z")
**Posts on this page:** 15
**Page:** 1

<div class="post-metadata">

### Author: ![jrsousa2](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/j/278dde/32.png) [@jrsousa2](https://community.mp3tag.de/u/jrsousa2)
#### Post date: [August 24, 2017, 3:02am UTC](https://community.mp3tag.de/t/mp3tag-wont-replace-with-in-tag-genre/19263/1 "2017-08-24T03:02:11Z")

</div>

How stupid is that?  
Any thoughts?

---

<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: [August 24, 2017, 3:17am UTC](https://community.mp3tag.de/t/mp3tag-wont-replace-with-in-tag-genre/19263/2 "2017-08-24T03:17:27Z")

</div>

> [@jrsousa2](#):
>
> How stupid is that?

see e.g. [/t/15285/1](https://community.mp3tag.de/t/15285/1)

---

<div class="post-metadata">

### Author: ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)
#### Post date: [August 24, 2017, 7:20am UTC](https://community.mp3tag.de/t/mp3tag-wont-replace-with-in-tag-genre/19263/3 "2017-08-24T07:20:12Z")

</div>

> [@jrsousa2](#):
>
> How stupid is that?Any thoughts?

Although your support request does not show any practical example, I want to try an answer.  
Because you see doubled backslashes in the tagfield GENRE, this tagfield might be a so called "multi-value" tagfield, ...  
with the meaning of having two or more genre values in this one GENRE tagfield.  
Because Mp3tag uses the double-backslash '\\' as the separator symbol between multi values in one tagfield, ... then a sequence of three backslashes '\' points to a probably writing error within this tagfield.

In case of a list view column "Genre" is configured to display the value $meta\_sep(GENRE,'\\') ...  
and the list view cell displays the string "Blues\\Rock" ...  
then there are stored two GENRE values ... "Blues" and "\Rock".

Apply the dialog "View/Extended Tags...", and you will see two values regarding GENRE:  
GENRE=Blues  
GENRE=\Rock

Note the leading backslash at the second GENRE value.

You can heal this erroneous situation by replacing the text sequence '\' with '\\' ...  
GENRE \<== $replace($meta\_sep(GENRE,'\\'),'\','\\')

DD.20170824.1124.CEST

---

<div class="post-metadata">

### Author: ![Zerow](https://community.mp3tag.de/user_avatar/community.mp3tag.de/zerow/32/11379_2.png) [@Zerow](https://community.mp3tag.de/u/Zerow)
#### Post date: [August 24, 2017, 11:01am UTC](https://community.mp3tag.de/t/mp3tag-wont-replace-with-in-tag-genre/19263/4 "2017-08-24T11:01:57Z")

</div>

> [@DetlevD](#):
>
> [...]  
> Because you see multiple backslashes in the tagfield GENRE, this tagfield might be a so called "multi-value" tagfield, ...  
> with the meaning of having two or more genre values in this one GENRE tagfield.  
> Because Mp3tag uses the double-backslash '\\' as the separator symbol between multi values in one tagfield, ... then a sequence of three backslashes '\' points to a probably writing error within this tagfield.
> 
> In case of a list view column "Genre" is configured to display the value $meta\_sep(GENRE,'\\') ...  
> and the list view cell displays the string "Blues\\Rock" ...  
> then there are stored two GENRE values ... "Blues" and "\Rock".  
> [...]

Is there a way to keep for example multiple artist instead in a form like this

```
Band feat. Some Vocalist & Some Other Guitaristin a form like this Band \\\\ Some Vocalist \\\\ Some Other Guitaristbut also see all of those three in Winamp?

```

Right now if I implement the double-backslash in the ARTIST tag field, all I see in Winamp is just the first one [the \>\>Band \<\<]

---

<div class="post-metadata">

### Author: ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)
#### Post date: [August 24, 2017, 12:51pm UTC](https://community.mp3tag.de/t/mp3tag-wont-replace-with-in-tag-genre/19263/5 "2017-08-24T12:51:04Z")

</div>

> [@Zerow](#):
>
> ... in a form like this Band \\ Some Vocalist \\ Some Other Guitarist ...

Note: your example string shows bad written Mp3tag syntax and will create additional space characters, giving the string values: 'Band ', ' Some Vocalist ', ' Some Other Guitarist'.

> [@Zerow](#):
>
> ... see all of those three in Winamp? ... I see in Winamp is just the first one ...

This sounds as Winamp does not support multi-value tagfields.  
Sorry, no further answer possible, because I have no Winamp at hand.

DD.20170824.1652.CEST

---

<div class="post-metadata">

### Author: ![Zerow](https://community.mp3tag.de/user_avatar/community.mp3tag.de/zerow/32/11379_2.png) [@Zerow](https://community.mp3tag.de/u/Zerow)
#### Post date: [August 24, 2017, 1:55pm UTC](https://community.mp3tag.de/t/mp3tag-wont-replace-with-in-tag-genre/19263/6 "2017-08-24T13:55:05Z")

</div>

> [@DetlevD](#):
>
> Note: your example string shows bad written Mp3tag syntax and will create additional space characters, giving the string values: 'Band ', ' Some Vocalist ', ' Some Other Guitarist'.

That is precisely what I want. Such pauses amplify clearness of the clear view in the Mp3tag

Because I am willing to abandon denotations like "feat.", as long as the replacements will be way more distinctive [and work both in Mp3tag and Winamp]

> [@DetlevD](#):
>
> This sounds as Winamp does not support multi-value tagfields  
> [...]

Yes it does

I just went here first with this issue. If no solution / answer will be provided on Mp3tg forum, I will go to Winamp community with this

---

<div class="post-metadata">

### Author: ![jrsousa2](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/j/278dde/32.png) [@jrsousa2](https://community.mp3tag.de/u/jrsousa2)
#### Post date: [August 24, 2017, 8:37pm UTC](https://community.mp3tag.de/t/mp3tag-wont-replace-with-in-tag-genre/19263/7 "2017-08-24T20:37:32Z")

</div>

.

---

<div class="post-metadata">

### Author: ![jrsousa2](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/j/278dde/32.png) [@jrsousa2](https://community.mp3tag.de/u/jrsousa2)
#### Post date: [August 24, 2017, 8:44pm UTC](https://community.mp3tag.de/t/mp3tag-wont-replace-with-in-tag-genre/19263/8 "2017-08-24T20:44:10Z")

</div>

.

---

<div class="post-metadata">

### Author: ![jrsousa2](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/j/278dde/32.png) [@jrsousa2](https://community.mp3tag.de/u/jrsousa2)
#### Post date: [August 24, 2017, 9:09pm UTC](https://community.mp3tag.de/t/mp3tag-wont-replace-with-in-tag-genre/19263/9 "2017-08-24T21:09:42Z")

</div>

I know what I will do, I will export the metadata to Excel and create a vbscript to replace  
the \\ with .  
That should fix the issue, troublesome but doable.

Using a DB (SAS) I was able to create the below script (just a few samples):

Dim iTunesApp  
Dim playlist  
Dim FullPath  
Dim tracks  
Dim track

Set iTunesApp = CreateObject("iTunes.Application.1")  
Set FSO = CreateObject("Scripting.FileSystemObject")

Set playlist = iTunesApp.LibrarySource.Playlists.ItemByName("AAA\_Update\_Genre")  
If playlist is Nothing Then  
iTunesApp.CreatePlaylist("AAA\_Update\_Genre")  
Set playlist = iTunesApp.LibrarySource.Playlists.ItemByName("AAA\_Update\_Genre")  
Else  
playlist.delete  
iTunesApp.CreatePlaylist("AAA\_Update\_Genre")  
Set playlist = iTunesApp.LibrarySource.Playlists.ItemByName("AAA\_Update\_Genre")  
End If

On error resume next  
count\_Artist = 0  
count\_Name = 0  
count\_AlbumArtist = 0  
count\_Album = 0  
count\_Genre = 0  
count\_Year = 0  
count\_Rating = 0  
count\_PlayedCount = 0  
count\_SkippedCount = 0  
Obs = 0

If FSO.FileExists("D:\MP3\Favorites\2 Brothers On The 4th Floor - Fly.mp3") Then  
Obs = Obs+1  
playlist.AddFile("D:\MP3\Favorites\2 Brothers On The 4th Floor - Fly.mp3")  
WScript.Echo "Track " & Obs & " - " & "D:\MP3\Favorites\2 Brothers On The 4th Floor - Fly.mp3"  
Set track = playlist.Tracks.Item(Obs)  
Set Artobj = track.Artwork  
If Artobj.Count\>0 Then  
Has\_Art = True  
Else  
Has\_Art = False  
End If

WScript.Echo "Can't set Artist to blank"

WScript.Echo "Can't set Name to blank"

WScript.Echo "Can't set AlbumArtist to blank"

WScript.Echo "Can't set Album to blank"

If true and (True) and track.Genre\<\>"Favorite\Fast\Dance\90s" Then  
WScript.Echo "Changing Genre"  
track.Genre = "Favorite\Fast\Dance\90s"  
count\_Genre = count\_Genre+1  
Else  
WScript.Echo "Not changing Genre"  
End If

WScript.Echo "Can't set Year to blank"

WScript.Echo "Can't set Rating to blank"

WScript.Echo "Can't set PlayedCount to blank"

WScript.Echo "Can't set SkippedCount to blank"

WScript.Echo "Can't add Genre"

WScript.Echo  
End If

If FSO.FileExists("D:\MP3\favorites\2 in a room - she's got me going crazy.mp3") Then  
Obs = Obs+1  
playlist.AddFile("D:\MP3\favorites\2 in a room - she's got me going crazy.mp3")  
WScript.Echo "Track " & Obs & " - " & "D:\MP3\favorites\2 in a room - she's got me going crazy.mp3"  
Set track = playlist.Tracks.Item(Obs)  
Set Artobj = track.Artwork  
If Artobj.Count\>0 Then  
Has\_Art = True  
Else  
Has\_Art = False  
End If

WScript.Echo "Can't set Artist to blank"

WScript.Echo "Can't set Name to blank"

WScript.Echo "Can't set AlbumArtist to blank"

WScript.Echo "Can't set Album to blank"

If true and (True) and track.Genre\<\>"Favorite\Fast\Rare Vinyl House\Porn" Then  
WScript.Echo "Changing Genre"  
track.Genre = "Favorite\Fast\Rare Vinyl House\Porn"  
count\_Genre = count\_Genre+1  
Else  
WScript.Echo "Not changing Genre"  
End If

WScript.Echo "Can't set Year to blank"

WScript.Echo "Can't set Rating to blank"

WScript.Echo "Can't set PlayedCount to blank"

WScript.Echo "Can't set SkippedCount to blank"

WScript.Echo "Can't add Genre"

WScript.Echo  
End If

If FSO.FileExists("D:\MP3\Favorites\2 Live Crew - Me So Horny.mp3") Then  
Obs = Obs+1  
playlist.AddFile("D:\MP3\Favorites\2 Live Crew - Me So Horny.mp3")  
WScript.Echo "Track " & Obs & " - " & "D:\MP3\Favorites\2 Live Crew - Me So Horny.mp3"  
Set track = playlist.Tracks.Item(Obs)  
Set Artobj = track.Artwork  
If Artobj.Count\>0 Then  
Has\_Art = True  
Else  
Has\_Art = False  
End If

WScript.Echo "Can't set Artist to blank"

WScript.Echo "Can't set Name to blank"

WScript.Echo "Can't set AlbumArtist to blank"

WScript.Echo "Can't set Album to blank"

If true and (True) and track.Genre\<\>"Favorite\Fast\Rap\Porn" Then  
WScript.Echo "Changing Genre"  
track.Genre = "Favorite\Fast\Rap\Porn"  
count\_Genre = count\_Genre+1  
Else  
WScript.Echo "Not changing Genre"  
End If

WScript.Echo "Can't set Year to blank"

WScript.Echo "Can't set Rating to blank"

WScript.Echo "Can't set PlayedCount to blank"

WScript.Echo "Can't set SkippedCount to blank"

WScript.Echo "Can't add Genre"

WScript.Echo  
End If

---

<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: [August 25, 2017, 3:51am UTC](https://community.mp3tag.de/t/mp3tag-wont-replace-with-in-tag-genre/19263/10 "2017-08-25T03:51:13Z")

</div>

> [@jrsousa2](#):
>
> ...  
> But now, doing a manipulation to change the order of some keywords, I replaced a few keywords with blank, which resulted in the goddamn \\ (or even \).
> 
> Is there a work around to this?

A single \ does not lead to a multivalue field.  
But once you have replaced a \ with \\ you get a multivalue field.  
You have to join the fields again with an action of the type "Merge duplicate fields" ([Merge Duplicate Fields – Mp3tag Documentation](https://docs.mp3tag.de/actions/merge-duplicate-fields)) in which you choose the \ as separator.  
So actually, there is no need to use external program 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: [August 25, 2017, 4:42am UTC](https://community.mp3tag.de/t/mp3tag-wont-replace-with-in-tag-genre/19263/11 "2017-08-25T04:42:13Z")

</div>

> [@jrsousa2](#):
>
> what I suspected, mp3tag is dumb as a rock too, who ordered this, that \\ is assumed to be a stupid multi tag value?

Guess who? ![:rolleyes:](https://community.mp3tag.de/uploads/default/original/1X/3a79e8b0b7d169b30216785521d7c6f4f895c421.gif ":rolleyes:")

> [@](#):
>
> How effing stupid is that, right? At least I can rant.

You can, but nobody is interested in your rants here. They only add noise. I'm really surprised that anyone feels invited to answer your posts at all.

Please remain on the topic, keep your rants to yourself and focus on solving the issues you're experiencing.

---

<div class="post-metadata">

### Author: ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)
#### Post date: [August 25, 2017, 8:20am UTC](https://community.mp3tag.de/t/mp3tag-wont-replace-with-in-tag-genre/19263/12 "2017-08-25T08:20:02Z")

</div>

> [@jrsousa2](#):
>
> Guys, sorry, this \\ is no multiple values for Genres, it was my own way of adding multiple genre values in the same tag. ...

Well, you have to learn, in Mp3tag there is the standard way to define and store data into a multi-value tag, by using the text sequence '\\' (double-backslash) as the separator or connector between the single values.

> [@jrsousa2](#):
>
> ... I separate all of the genres that I create myself with a single . For example, to not lose this information, I usually add value Favorite to all the songs that I like better, e.g. Favorite\Pop or Favorite\Rock\90s. ...

Hmm, you may doing it this way, no problem anyway.

> [@jrsousa2](#):
>
> ... But now, doing a manipulation to change the order of some keywords, I replaced a few keywords with blank, which resulted in the goddamn \\ (or even \). Is there a work around to this?

Hmm, yes, you have to avoid bad coding.

Note: once you have created a double-backslash string '\\' within a tag-field, then while saving, Mp3tag tries to create a so called multi-value tag-field.

Once you know this, then you can change your behaviour when changing a tag-field content in the right way, as you need it.  
Note: When removing an element from a list, you have always to remove one superfluous separator.

Example:  
You have a tag-field GENRE with the value ...  
GENRE = 'Blues\Rock\Pop'

Remove the value 'Pop' ....  
Formatstring: $trimRight($replace(%GENRE%'','Pop',),'')  
Result: GENRE = 'Blues\Rock'

Additional remove the value 'Blues' ....  
Formatstring: $trimRight($replace(%GENRE%'','Blues',),'')  
Result: GENRE = 'Rock'

DD.20170825.1220.CEST

---

<div class="post-metadata">

### Author: ![Zerow](https://community.mp3tag.de/user_avatar/community.mp3tag.de/zerow/32/11379_2.png) [@Zerow](https://community.mp3tag.de/u/Zerow)
#### Post date: [August 26, 2017, 3:20pm UTC](https://community.mp3tag.de/t/mp3tag-wont-replace-with-in-tag-genre/19263/13 "2017-08-26T15:20:55Z")

</div>

> [@jrsousa2](#):
>
> [...]  
> At least I can rant.

But it does not mean you should

What you should do is to appreciate a distributed for free piece of software, than looks simple on the surface but in reality can be adapted to various needs. Calling Mp3tag dumb makes look dumb not the software

> [@jrsousa2](#):
>
> I know what I will do, I will export the metadata to Excel and create a vbscript to replace  
> the \\ with .  
> That should fix the issue, troublesome but doable.  
> [...]

Can't you just switch from using \ or \\ to also something even more distinctive like ## or @; keeping all of values in one field?

---

<div class="post-metadata">

### Author: ![jrsousa2](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/j/278dde/32.png) [@jrsousa2](https://community.mp3tag.de/u/jrsousa2)
#### Post date: [November 23, 2017, 7:48pm UTC](https://community.mp3tag.de/t/mp3tag-wont-replace-with-in-tag-genre/19263/14 "2017-11-23T19:48:23Z")

</div>

> [@Florian](#):
>
> Guess who? ![:rolleyes:](https://community.mp3tag.de/uploads/default/original/1X/3a79e8b0b7d169b30216785521d7c6f4f895c421.gif ":rolleyes:")
> 
> You can, but nobody is interested in your rants here. They only add noise. I'm really surprised that anyone feels invited to answer your posts at all.
> 
> Please remain on the topic, keep your rants to yourself and focus on solving the issues you're experiencing.

I'm sorry for my rant, I use your program a lot, and it'd be very unfair from me to criticize it.  
Sorry, if I could erase what I said, I would.

---

<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: [February 9, 2026, 12:26pm UTC](https://community.mp3tag.de/t/mp3tag-wont-replace-with-in-tag-genre/19263/15 "2026-02-09T12:26:58Z")

</div>


