# Split a tag to multiple tags

**URL:** https://community.mp3tag.de/t/split-a-tag-to-multiple-tags/16724
**Category:** General Discussion
**Created:** [March 21, 2015, 3:41am UTC](https://community.mp3tag.de/t/split-a-tag-to-multiple-tags/16724 "2015-03-21T03:41:20Z")
**Posts on this page:** 1
**Showing post:** 3

<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: [March 21, 2015, 10:09am UTC](https://community.mp3tag.de/t/split-a-tag-to-multiple-tags/16724/3 "2015-03-21T10:09:00Z")

</div>

> [@Peater Parker](#):
>
> I'm trying to split a Tag Value to Multiple Tags. For Example, here's a COMMENT tag along with it's corresponding value.  
> COMMENT: Categories – Trumpet\\Genius ...  
> What i need want to achieve is:  
> CATEGORIES: Trumpet  
> CATEGORIES: Genius

You have pointed to an outside forum's message, which depends on a forum thread from here ...  
[/t/9027/1](https://community.mp3tag.de/t/9027/1)

If you see this text ... "Categories – Trumpet\\Genius" ...  
in Mp3tag within a listview field or tag panel field, ..  
then you have to do with a so called "multi-value" tag-field, ...  
because Mp3tag uses the "\\ double backslash" as the visual delimiter for multi values stored within one tag-field ...  
Value 1: Categories – Trumpet  
Value 2: Genius

Because you want to create a new multi-value tag-field CATEGORIES ...  
out of textual parts from the tag-field COMMENT, ...  
to be extracted from each single value out of the multi-value tag-field COMMENT, ...  
then you have to do it in few steps.

1. Copy COMMENT (meta values) to CATEGORIES (merged values).  
Action "Format value"  
Field: CATEGORIES  
Formatstring: $meta\_sep(COMMENT,'~')  
Result ...  
CATEGORIES = 'Categories – Trumpet~Genius'

2. Remove the unwanted text, for example by splitting the given text into parts.  
Action "Guess values"  
Source format: %CATEGORIES%  
Guessing pattern: %DUMMY% – %CATEGORIES%  
Result ...  
CATEGORIES = 'Trumpet~Genius'

3. Make CATEGORIES multi-value.  
Action "Split field by separator"  
Field: CATEGORIES  
Separator: ~  
Result ...  
CATEGORIES = 'Trumpet'  
CATEGORIES = 'Genius'

4. Ready.

All steps consolidated into one step ...

**Action "Format value" Field: CATEGORIES Formatstring: $replace($meta\_sep(COMMENT,'~'),'Categories – ',,'~','\\\\')**

DD.20150321.1216.CET

---

_[View the full topic](https://community.mp3tag.de/t/split-a-tag-to-multiple-tags/16724)._
