#1 : 07/04-21 17:17 Alfred E. Neumann
Posts: 2
|
Hi all,
I have been reading a lot, but it just will not work. I would like to change files like Dan Brown - Diabolus.epub to Brown Dan - Diabolus.epub which should, according to the help, not be difficult. I used Replace with regular expression, (<Word:1>) (<Word:2>) (<Word:3>) \2 \1 \3 But I get the message , if I click on "replace by" Error in regular expression at offset 2: reference to non-existing subpattern. what am I doing wrong? what did I misunderstand? Thanks! |
#2 : 07/04-21 20:24 David Lee
Posts: 1125
|
You are confusing two different methods. The <Word:x> tag RETURNS the xth word in the filename.
Either use New name = <Word:2> <Word:1> - <Word:3> or the Replace method with... Text to be replaced: (\w*) (\w*) Replace with: \2 \1 Occurrence: 1st Use regular expressions |
#3 : 07/04-21 21:47 Alfred E. Neumann
Posts: 2
|
Thanks a lot. Both solutions are working. Great piece of software, and great support!!!
Sorry, did not understand that I cannot mix the two methods. :-( |
#4 : 07/04-21 22:16 David Lee
Posts: 1125
|
Reply to #3:
You can mix - but not in the way you suggested. Try... Replace: \w* \w* with: <Word:2> <Word:1> |