# Swapping multiple words in TITLE

**URL:** https://community.mp3tag.de/t/swapping-multiple-words-in-title/10707
**Category:** Support
**Created:** [August 25, 2010, 1:35am UTC](https://community.mp3tag.de/t/swapping-multiple-words-in-title/10707 "2010-08-25T01:35:30Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![chrisjpopp](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/9de0a6/32.png) [@chrisjpopp](https://community.mp3tag.de/u/chrisjpopp)
#### Post date: [August 25, 2010, 1:35am UTC](https://community.mp3tag.de/t/swapping-multiple-words-in-title/10707/1 "2010-08-25T01:35:30Z")

</div>

I've got song titles that are like this:

_Main Titles [From "Delores Claiborne"]_

and  
  
_Main Titles [From Delores Claiborne]_

What I would like to do is make the title be

_Delores Claiborne: Main Titles_

Thanks,  
Chris

---

<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: [August 25, 2010, 2:10am UTC](https://community.mp3tag.de/t/swapping-multiple-words-in-title/10707/2 "2010-08-25T02:10:37Z")

</div>

> [@chrisjpopp](#):
>
> ..._Main Titles [From "Delores Claiborne"]_  
> and  
> _Main Titles [From Delores Claiborne]_  
> What I would like to do is make the title be  
> _Delores Claiborne: Main Titles_  
> ...

From:  
Main Titles [From "Delores Claiborne"]  
Main Titles [From Delores Claiborne]  
To:  
Delores Claiborne: Main Titles

Action "Format value":

**$regexp($regexp($replace('Main Titles [From "Delores Claiborne"]','"',),'^(.+?)\s\[(.+?)\]$','$2: $1'),'^From\s',)**

Alternative:  
Action "Format value":

**$regexp($regexp($regexp('Main Titles [From "Delores Claiborne"]','\[From ','['),'"',),'^(.+?)\[(.+?)\]$','$2: $1')**

Alternative:  
Action "Format value":

**$regexp('Main Titles [From "Delores Claiborne"]','^(.+?)\s\[From\s\"?(.+?)\"?\]$','$2: $1')**

In the above expression change the string part 'Main Titles [From "Delores Claiborne"]' to the tag-field content you want to use, e. g. %TITLE%.  
Use the expression with an action "Format value".  
You cannot use this expression to change a filename, because the colon is a forbidden character for a filename.

And see there about D **o** lores:  
[http://en.wikipedia.org/wiki/Dolores\_Claiborne](http://en.wikipedia.org/wiki/Dolores_Claiborne)

DD.20100825.0642.CEST

---

<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:22pm UTC](https://community.mp3tag.de/t/swapping-multiple-words-in-title/10707/3 "2026-02-09T12:22:30Z")

</div>


