# Filename regex rearranging

**URL:** https://community.mp3tag.de/t/filename-regex-rearranging/11366
**Category:** Support
**Created:** [December 30, 2010, 10:10pm UTC](https://community.mp3tag.de/t/filename-regex-rearranging/11366 "2010-12-30T22:10:15Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![nal007](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/n/71c47a/32.png) [@nal007](https://community.mp3tag.de/u/nal007)
#### Post date: [December 30, 2010, 10:10pm UTC](https://community.mp3tag.de/t/filename-regex-rearranging/11366/1 "2010-12-30T22:10:15Z")

</div>

Hi, I have a bunch of songs having featuring artists (feat., ft., feat, ft) but I want to change the place of these featuring artists on the filename by putting them at the end of the filename.

Lets say the name of the song is:  
Pink Feat. John Legend - Don't Give Up

What expression can I use so it will be rewritten the following way:  
Pink - Don't Give Up Feat. John Legend

Thanks in advance

---

<div class="post-metadata">

### Author: ![pone](https://community.mp3tag.de/user_avatar/community.mp3tag.de/pone/32/272_2.png) [@pone](https://community.mp3tag.de/u/pone)
#### Post date: [December 30, 2010, 11:35pm UTC](https://community.mp3tag.de/t/filename-regex-rearranging/11366/2 "2010-12-30T23:35:35Z")

</div>

> [@nal007](#):
>
> Hi, I have a bunch of songs having featuring artists (feat., ft., feat, ft) but I want to change the place of these featuring artists on the filename by putting them at the end of the filename.
> 
> Lets say the name of the song is:  
> Pink Feat. John Legend - Don't Give Up
> 
> What expression can I use so it will be rewritten the following way:  
> Pink - Don't Give Up Feat. John Legend

Action: Format Value  
Field: \_FILENAME  
Formatstring: $regexp(%\_filename%,(._) (featuring|Featuring|FEATURING|ft|Ft|FT|feat|Feat|FEAT)(. | )(._) - (.\*),$1 - $5 $2$3$4)

If you want to change the feat inside you tag fields, look here:  
[/t/11096/1](https://community.mp3tag.de/t/11096/1)  
or here (German):  
[/t/11291/1](https://community.mp3tag.de/t/11291/1)

---

<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/filename-regex-rearranging/11366/3 "2026-02-09T12:22:47Z")

</div>


