# Q: "Split field by separator" usage

**URL:** https://community.mp3tag.de/t/q-split-field-by-separator-usage/16323
**Category:** Support
**Created:** [November 13, 2014, 12:02pm UTC](https://community.mp3tag.de/t/q-split-field-by-separator-usage/16323 "2014-11-13T12:02:31Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![phossler](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/278dde/32.png) [@phossler](https://community.mp3tag.de/u/phossler)
#### Post date: [November 13, 2014, 12:02pm UTC](https://community.mp3tag.de/t/q-split-field-by-separator-usage/16323/1 "2014-11-13T12:02:31Z")

</div>

> [@](#):
>
> From Help:
> 
> Split field by separator
> 
> This action type splits the content of a tag field into multiple separate tag fields based on a given separator character.

I had a TITLE field on 500+ MP3's that look like "TITLE - ARTIST" with the ALBUM and ARTIST fields both set to the same value

I tried to use the [Split Field by Separator] action to split the current TITLE field into 2 pieces and put text after the '-' into  
the ARTIST field and the part before the '-' into the TITLE field, both followed by a TRIM()

The online help is a little sparse, and I couldn't find any examples online.

I ended up using a complicated formula, but I'd like to understand the Split Field more for the next time

Thanks

Paul

Using 2.65a

---

<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: [November 13, 2014, 1:01pm UTC](https://community.mp3tag.de/t/q-split-field-by-separator-usage/16323/2 "2014-11-13T13:01:17Z")

</div>

Actually, I think you should use an action of the type  
"Guess value" (import tag-field). THe split field action is more to create multivalue fields.

Enter as source field:  
%title%  
Enter as mask: %title% - %artist%

There should not be the necessity to trim anything as the "blank-hyphen-blank" separator should take care of the extra blanks.

---

<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: [November 13, 2014, 1:01pm UTC](https://community.mp3tag.de/t/q-split-field-by-separator-usage/16323/3 "2014-11-13T13:01:31Z")

</div>

Deleted.

---

<div class="post-metadata">

### Author: ![phossler](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/278dde/32.png) [@phossler](https://community.mp3tag.de/u/phossler)
#### Post date: [November 13, 2014, 1:44pm UTC](https://community.mp3tag.de/t/q-split-field-by-separator-usage/16323/4 "2014-11-13T13:44:10Z")

</div>

> [@ohrenkino](#):
>
> Actually, I think you should use an action of the type  
> "Guess value" (import tag-field). THe split field action is more to create multivalue fields.
> 
> Enter as source field:  
> %title%  
> Enter as mask: %title% - %artist%
> 
> There should not be the necessity to trim anything as the "blank-hyphen-blank" separator should take care of the extra blanks.

Ahhh -- did NOT even think to try that. Thanks

But can you give me a simple example of how to use the Split Field. There help is too brief for me to figure out

Thanks

Paul

---

<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: [November 13, 2014, 1:57pm UTC](https://community.mp3tag.de/t/q-split-field-by-separator-usage/16323/5 "2014-11-13T13:57:28Z")

</div>

> [@Paul\_Hossler](#):
>
> But can you give me a simple example of how to use the Split Field. There help is too brief for me to figure out

Let us say you have a genre-tag with the content:  
Pop/Rock/Folk-Rock/Country

You want to make a Multivalue tag-field insted of this:

Field: Genre  
Separator: /

If you look for the result of this action you can see  
Pop\Rock\Folk-Rock\Country in the tag panel and  
4 Tags of genre in the extented tag-panel (ALT-T).

---

<div class="post-metadata">

### Author: ![phossler](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/278dde/32.png) [@phossler](https://community.mp3tag.de/u/phossler)
#### Post date: [November 13, 2014, 5:46pm UTC](https://community.mp3tag.de/t/q-split-field-by-separator-usage/16323/6 "2014-11-13T17:46:31Z")

</div>

Got it

Thanks

Now I see why it's not even close to what I wanted to do

Paul

---

<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: [June 13, 2024, 11:47am UTC](https://community.mp3tag.de/t/q-split-field-by-separator-usage/16323/8 "2024-06-13T11:47:36Z")

</div>

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