# Convert multi-tag field (RegEx?)

**URL:** https://community.mp3tag.de/t/convert-multi-tag-field-regex/63291
**Category:** Support
**Created:** [January 2, 2024, 5:19pm UTC](https://community.mp3tag.de/t/convert-multi-tag-field-regex/63291 "2024-01-02T17:19:59Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![MusikBaum](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/85f322/32.png) [@MusikBaum](https://community.mp3tag.de/u/MusikBaum)
#### Post date: [January 2, 2024, 5:19pm UTC](https://community.mp3tag.de/t/convert-multi-tag-field-regex/63291/1 "2024-01-02T17:19:59Z")

</div>

The following expression  
"`Vera Fischer - Flute\\Evan Markus Hulbert - Double Bass\\Markus von Deuter - Oboe`"  
should be converted to  
"`Fischer, Vera - Flute\\Hulbert, Evan Markus - Double Bass\\von Deuter, Markus - Oboe`"  
So far I work with:  
`$replace($trim($regexp($meta_sep(soloists,; ); ,'(.*?) (.*?) - (.*?); ','$2, $1 - $3; ')),; ,\\,;,)`  
The first "Vera Fischer" (first name and surname) works without any problems. The second case is output incorrectly. In the third case, it only works in this form. As soon as a second first name is added or "de la" is used instead of "von", for example, it does not work.  
My research has been unsuccessful so far.  
Does anyone have any ideas?

---

<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: [January 2, 2024, 5:58pm UTC](https://community.mp3tag.de/t/convert-multi-tag-field-regex/63291/2 "2024-01-02T17:58:51Z")

</div>

You can detect the last word (the "name") in a string and change the part in your regular expression from  
`'(.*?) (.*?) - (.*?); '`  
to  
`'(.*?) (\w+) - (.*); '`

![image](https://community.mp3tag.de/uploads/default/original/2X/7/7429a6404edc01d5ab28888097fdbc3bfdd7ce22.png)

but I don't see how you can reliable automate the detection of "von" or "de la" or "auf der" or "von der" and many other "[nobiliary particle](https://en.wikipedia.org/wiki/Nobiliary_particle)" as prefix of the name and therefore set it in front of the last word.

---

<div class="post-metadata">

### Author: ![MusikBaum](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/85f322/32.png) [@MusikBaum](https://community.mp3tag.de/u/MusikBaum)
#### Post date: [January 2, 2024, 8:28pm UTC](https://community.mp3tag.de/t/convert-multi-tag-field-regex/63291/3 "2024-01-02T20:28:46Z")

</div>

> [@MusikBaum](#):
>
> `Vera Fischer - Flute\\Evan Markus Hulbert - Double Bass\\Markus von Deuter - Oboe`

Thanks for the quick reply. But it does not change the result. Incorrect: Markus Hulbert, Evan.  
Correct would be: Hulbert, Evan Markus.

---

<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: [January 3, 2024, 7:55am UTC](https://community.mp3tag.de/t/convert-multi-tag-field-regex/63291/4 "2024-01-03T07:55:02Z")

</div>

> [@MusikBaum](#):
>
> But it does not change the result.

If I try it with Convert Tag -\> Tag (to see an immediate preview)  
and this slightly adapted part:  
`'(.*?) (\w+) - (.*?); '`  
I get this:

 ![image](https://community.mp3tag.de/uploads/default/original/2X/5/5021ba9bdf83870c4a7cff15df5fb3093f81dbc0.png)

The first and second entry seems to be correct.  
The third entry can't be transformed automatically, as I explained above.

---

<div class="post-metadata">

### Author: ![MusikBaum](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/85f322/32.png) [@MusikBaum](https://community.mp3tag.de/u/MusikBaum)
#### Post date: [January 3, 2024, 10:03am UTC](https://community.mp3tag.de/t/convert-multi-tag-field-regex/63291/5 "2024-01-03T10:03:12Z")

</div>

> [@MusikBaum](#):
>
> Vera Fischer - Flute\Evan Markus Hulbert - Double Bass\Markus von Deuter - Oboe

Thank you very much! I have found my mistake.

---

<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:30pm UTC](https://community.mp3tag.de/t/convert-multi-tag-field-regex/63291/6 "2026-02-09T12:30:13Z")

</div>


