# 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:** 1
**Showing post:** 2

<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)

---

_[View the full topic](https://community.mp3tag.de/t/filename-regex-rearranging/11366)._
