#1 : 05/03-19 22:06 D Blake
Posts: 1
|
Is it possible to rename a batch of folders from something like 'The xxx', to 'xxx, The'? If so, how do I achieve this please...
|
#2 : 06/03-19 16:14 David Lee
Posts: 1125
|
www.advancedrenamer.com/user_guide/regular_expresions
|
#3 : 06/03-19 18:23 Stefan
Posts: 274
|
Reply to #1:
FROM: The three xxx The xxx TO: three xxx, The xxx, The USE two method in conjunction: method0001 :"REMOVEpattern"; pattern:"The "; applyto:"name"; https://www.advancedrenamer.com/user_guide/metho d_removepattern method0002 :"ADD"; add:", The"; position:"0"; backwards"; applyto:"name"; https://www.advancedrenamer.com/user_guide/metho d_add HTH? ;-) |
#4 : 07/03-19 00:24 David Lee
Posts: 1125
|
Reply to #3:
D Blake said "from SOMETHING LIKE 'The xxx' " - you should expect this also to include titles starting with an indefinite article (A or An). The way to handle these options is to use the Replace method with a Regular Expression: Replace: ^(A|An|The) (.*) With: \2, \1 If you leave the "Case sensitive" box unchecked this will also handle instances where the first letter is lower case. |