#1 : 09/12-24 09:13 Delta Foxtrot
Posts: 364
|
AUA's question:
S00.E00 - dd.mm.yyyy - Actor 1 - Movie Title - [ Genre ] S00.E00 - dd.mm.yyyy - Actor 1 - Actor 2 - Movie Title - [ Genre ] note: model some times more than one I need below format instead of above format !! S00.E00 - dd.mm.yyyy - Movie Title - Actor 1 - Actor 2 - [ Genre ] ------------------------------------------------------------------------- Hi AUA, Since you've got variable length information in your filenames, you'll have to use the space-dash-space sequences to determine the reordering of file names. By using a cascading method list we should be able to get what you need. In other words, we'll create a replace method that only effects the movies with two actor names and doesn't change the others, then another method that effects the one-actor movies: REPLACE method 1: Replace: ^([^\-]+)\- ([^\-]+)\- ([^\-]+)- ([^\-]+)- ([^\-]+)- \[ With: $1- $2- $5- $3- $4- [ Occurrence: All Case sens.: Doesn't matter Use regular expressions: CHECKED REPLACE method 2: Replace: ^([^\-]+)\- ([^\-]+)\- ([^\-]+)- ([^\-]+)- \[ With: $1- $2- $4- $3- [ Occurrence: All Case sens.: doesn't matter Use regular expressions: CHECKED Screenshot: https://drive.google.com/file/d/1gsb6A7_-lnuh0M- 6yzObOVcpM4-NeRh1/view?usp=sharing That will do it for movie titles with one or two actors in the title. If you have some with three you can just add another Replace method before these two, with another "([^\-]+)\- " capturing group and adjust the replacement groups accordingly. If you need help with that let us know. Best, DF |