# Moving part of TITLE to GENRE

**URL:** https://community.mp3tag.de/t/moving-part-of-title-to-genre/16859
**Category:** Support
**Created:** [April 27, 2015, 6:50pm UTC](https://community.mp3tag.de/t/moving-part-of-title-to-genre/16859 "2015-04-27T18:50:27Z")
**Posts on this page:** 1
**Showing post:** 11

<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: [June 17, 2015, 2:15pm UTC](https://community.mp3tag.de/t/moving-part-of-title-to-genre/16859/11 "2015-06-17T14:15:28Z")

</div>

> [@zerow](#):
>
> That looks adaptable to my needs ... But, ... it looks like chaos ...

zerow, I do not understand what you are telling me, ...  
therefore I made an example action group script ...  
to demonstrate how to sort number strings in the range from '01' to '99'.

Begin Action Group **Test2015#20150617.Example.Sort.01to99** 

Action #1  
_Actiontype 5:_ **Format value**  
_Field \_\_\_\_\_\_:_ **LIST\_CURRENT**  
_Formatstring:_ **'04|21|69|99|17|01|38|78'**

 

Action #2  
_Actiontype 5:_ **Format value**  
_Field \_\_\_\_\_\_:_ **LIST\_ORDERED**  
_Formatstring:_ **'01|02|03|04|05|06|07|08|09|10|11|12|13|14|15|16|17|18|19|20|  
21|22|23|24|25|26|27|28|29|30|31|32|33|34|35|36|37|38|39|40|  
41|42|43|44|45|46|47|48|49|50|51|52|53|54|55|56|57|58|59|60|  
61|62|63|64|65|66|67|68|69|70|71|72|73|74|75|76|77|78|79|80|  
81|82|83|84|85|86|87|88|89|90|91|92|93|94|95|96|97|98|99'**

 

Action #3  
_Actiontype 5:_ **Format value**  
_Field \_\_\_\_\_\_:_ **LIST\_RESULT**  
_Formatstring:_ **$regexp($regexp($regexp(%LIST\_ORDERED%,$regexp(%LIST\_ORDERED%,'(?\>('%LIST\_CURRENT%'))',),),'|+','|'),'|$',)**

 

End Action Group **Test2015#20150617.Example.Sort.01to99** (3 Actions)

 

... which gives ...  
LIST\_RESULT = 01|04|17|21|38|69|78|99

 

[Test2015\_20150617.Example.Sort.01to99.mta](https://community.mp3tag.de/uploads/default/original/2X/3/336b2a02ca3f2a3093e99b13deeb8b86be5c0722.mta) (535 Bytes)

 

DD.20150617.1836.CEST

 

Note: Regular expression has been changed ... see there ...  
[Moving part of TITLE to GENRE](https://community.mp3tag.de/t/16859/20)

 

DD.20150626.1116.CEST

 

[Test2015\_20150617.Example.Sort.01to99.mta](https://community.mp3tag.de/uploads/default/original/2X/3/336b2a02ca3f2a3093e99b13deeb8b86be5c0722.mta) (535 Bytes)

---

_[View the full topic](https://community.mp3tag.de/t/moving-part-of-title-to-genre/16859)._
