# How do I move text in parenthesis from Artist to Title please

**URL:** https://community.mp3tag.de/t/how-do-i-move-text-in-parenthesis-from-artist-to-title-please/65224
**Category:** Support
**Created:** [July 7, 2024, 9:57am UTC](https://community.mp3tag.de/t/how-do-i-move-text-in-parenthesis-from-artist-to-title-please/65224 "2024-07-07T09:57:51Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![DJ\_Wildr](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/a183cd/32.png) [@DJ\_Wildr](https://community.mp3tag.de/u/DJ_Wildr)
#### Post date: [July 7, 2024, 9:57am UTC](https://community.mp3tag.de/t/how-do-i-move-text-in-parenthesis-from-artist-to-title-please/65224/1 "2024-07-07T09:57:51Z")

</div>

I have a number of files that have the remix type in parenthesis I.E. [extended remix], that are sat with the artist name.

I wish to move these (including the parenthesis) to be behind the title.

I.E.  
Title - Bloggs Boogie  
Artist - Joe Bloggs [Extend Remix]

I wish to have as;  
Title - Bloggs Boogie [Extended Remix]  
Artist - Joe Bloggs

I have read a number of guess value and format suggestions, but cannot get them to provide the result I need.

Many thanks.

---

<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: [July 7, 2024, 10:03am UTC](https://community.mp3tag.de/t/how-do-i-move-text-in-parenthesis-from-artist-to-title-please/65224/2 "2024-07-07T10:03:23Z")

</div>

Try an action of the type "Guess value"  
Source: `$regexp(%artist%,'(.*) (\[.*)',$1==%title% $2)`  
Target format string: `%artist%==%title%

---

<div class="post-metadata">

### Author: ![DJ\_Wildr](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/a183cd/32.png) [@DJ\_Wildr](https://community.mp3tag.de/u/DJ_Wildr)
#### Post date: [July 7, 2024, 10:13am UTC](https://community.mp3tag.de/t/how-do-i-move-text-in-parenthesis-from-artist-to-title-please/65224/3 "2024-07-07T10:13:44Z")

</div>

> [@ohrenkino](#):
>
> %artist%==%title%

Absolutely fantastic - this works, I don't follow quite how (lack of understanding of $regexp), but I really appreciate your swift response!

---

<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: [July 7, 2024, 10:57am UTC](https://community.mp3tag.de/t/how-do-i-move-text-in-parenthesis-from-artist-to-title-please/65224/4 "2024-07-07T10:57:59Z")

</div>

> [@DJ\_Wildr](#):
>
> I don't follow quite how (lack of understanding of $regexp)

`$regexp(%artist%,'(.*) (\[.*)'`

The above regular expression creates two captured groups:  
`(.*)` as `$1`  
a space  
`(\[.*)` as `$2`  
This means:  
Search for everything before a space and an opening` [` bracket.  
Put the content of this leading part into `$1`  
Put the content of the following part into `$2`

The second part in the regular expression after the comma is the substitution ("replacement").  
`$1==%title% $2`  
This means:  
Replace the string with the found part in `$1`,  
add `==`  
add `%title%`  
add a space  
add the found part in `$2`

With the target format string:  
`%artist%==%title%`  
you fill the content in front of `==` into the tag ARTIST  
you fill the content after the `==` into the tag TITLE

The `==` signs are unique dividing characters with a very low risk be found in the content itself.  
You could choose whatever you like as dividing characters, as long as they are not part of the content itself.

---

<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: [August 6, 2024, 10:58am UTC](https://community.mp3tag.de/t/how-do-i-move-text-in-parenthesis-from-artist-to-title-please/65224/5 "2024-08-06T10:58:58Z")

</div>

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