# Move and swap items in title

**URL:** <https://community.mp3tag.de/t/move-and-swap-items-in-title/60123>\
**Category:** Support\
**Created:** [February 19, 2023, 8:07pm UTC](https://community.mp3tag.de/t/move-and-swap-items-in-title/60123 "2023-02-19T20:07:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![JFollo](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/j/a9adbd/32.png) [@JFollo](https://community.mp3tag.de/u/JFollo)\
**Post date:** [February 19, 2023, 8:07pm UTC](https://community.mp3tag.de/t/move-and-swap-items-in-title/60123/1 "2023-02-19T20:07:19Z")

</div>

Hello, I am asking for help please with a issue I can't seem to find an answer to. I have looked at 50 or more posts asking similar questions and gone back and tried different variations of the answers. My question is how would I swap:

`(Title Field) song name (**remix) (feat.**)` to  
`(Title Field) song name (feat. **) (** remix)`?

This is the closest question to what I want but they asked for:

`Song Title (feat. Xyz) [Abc remix] to Song Title [Abc Remix] (feat. Xyz)`

They have one ( ) and one [], I have both ( ) and ( ).

The answers were:

You could use an action of the type "Format Tag-Field" for TITLE  
Enter as format string: `$regexp('%title%','(.*) ([.*]) ((.*))',$1 $3 $2)`

I tried this by changing the `([.*]) ((.*))' to ((.*)) ((.*))'` Does not work changing the `[]` to `( )`

You should get the same result with an action of the type "Replace with regular expression" for TITLE  
Enter as search string: `(.*) ([.*]) ((.*))`  
Enter as replace string:`$1 $3 $2`

I tried changing the `([.*])` to `((.*))` Does not work changing the `[]` to `( )`

Or enter  
`$regexp('%title%','(.*) ([.*]) ((.*))',$1 $3 $2)`  
in the Convert\>tag-tag  
function for %title%

I have tried changing the `([.*]) to ((.*))` Does not work changing the `[]` to `( )`

I have tried: You could use an action of the type "Format Tag-Field" for TITLE  
Enter as format string: `$regexp('%title%','(.*) (* *(* *.* *)*) ((.*))',$1 $3 $2)`

I changed this to: `$regexp('%title%','(.*) (* *(* *.* *)*) ((.*))',$1 $2)` - Does not work  
`$regexp(%TITLE%,'^(.+?)\s((.+?))\s((feat.\s.+?))$','$1 $3 $2')` - Does not work

And a few more different variations and a bunch more different Format value's, Convert\>tag-tag and Guess Values but all the questions did not deal with a ( ) and ( ).

Thank you for any responses.

Additionally (but not needed if to much)

How would I move `( **** )` from one field to another? Lets say from Artist to Title.

All the posts really only deal with only words or `(feat. )` or (feat. and remove the ( - but none just move `( **** )`.

It seems all the different codes I have tried don't like me changing things to `( )`.

Sorry for the long post.

---

<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:** [February 19, 2023, 8:23pm UTC](https://community.mp3tag.de/t/move-and-swap-items-in-title/60123/2 "2023-02-19T20:23:44Z")

</div>

> [@JFollo](#):
>
> (Title Field) song name (\*\* remix) (feat. \*\*) to  
> `(Title Field) song name (feat. **) (** remix)`?

Try an action of the type "Replace with regular expression" for TITLE  
Search string: `(.*) (\(.*\)) (\(.*\))`  
Replace with: `$1 $3 $2`

---

<div class="post-metadata">

**Author:** ![JFollo](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/j/a9adbd/32.png) [@JFollo](https://community.mp3tag.de/u/JFollo)\
**Post date:** [February 19, 2023, 8:37pm UTC](https://community.mp3tag.de/t/move-and-swap-items-in-title/60123/3 "2023-02-19T20:37:35Z")

</div>

> [@ohrenkino](#):
>
> $1 $3 $2

You are a genius.

Can't believe it was that simple and I was trying code 40 characters long.

Thank you soo much.

---

<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:** [March 21, 2023, 8:38pm UTC](https://community.mp3tag.de/t/move-and-swap-items-in-title/60123/4 "2023-03-21T20:38:12Z")

</div>

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