View Single Post
Old 07-26-2011, 10:33 PM   #8
penguinaka
Quack! Quack!
penguinaka can eat soup with a fork.penguinaka can eat soup with a fork.penguinaka can eat soup with a fork.penguinaka can eat soup with a fork.penguinaka can eat soup with a fork.penguinaka can eat soup with a fork.penguinaka can eat soup with a fork.penguinaka can eat soup with a fork.penguinaka can eat soup with a fork.penguinaka can eat soup with a fork.penguinaka can eat soup with a fork.
 
penguinaka's Avatar
 
Posts: 92
Karma: 9176
Join Date: Apr 2011
Location: Florida
Device: kindle 3 & sony daily prs950sc
LN FN SWAPS: Pre - Import

LN, FN ==> FN LN
Code:
^(\w+), *([\w \.]+)[ ]+-[ ]*(.*)
$2 $1 - $3
LN, FN & LN, FN ==> FN LN & FN LN
Code:
([^,]*), ([^&]*)& ([^,]*),([^-]*)-(.*)"
$2$1 &$4$3 -$5
LN, FN and LN, FN ==> FN LN and FN LN
Code:
([^,]*), ([^&]*)and ([^,]*),([^-]*)-(.*)
$2$1 and$4$3 -$5
Author - Title - Series Swaps:

T,S,A not ( )
Swap T,S,A to A,S,T in book filename (if there is a " - " between the three parts) anything in brackets at the end remains in place.
Code:
([^-]*) - ([^-]* - )?([^(]*)( \(.*\))?(\.[^(.]*)
\3 - \2\1\4\5
T,A,S not ( )
Swap T,A,S to A,S,T in book filename (if there is a " - " between the three parts) anything in brackets at the end remains in place.
Code:
(.*) - (.*) - ([^(]*)( \(.*\))?(\.[^(.]*)
\2 - \3 - \1\4\5
S,A,T not ( )
Swap S,A,T to A,S,T in book filename (if there is a " - " between the three parts) anything in brackets at the end remains in place.
Code:
([^-]*) - ([^-]* - )?([^(]*)( \(.*\))?(\.[^(.]*)
\2\1 - \3\4\5
Swap S,T,A not ( )
Swap S,T,A to A,S,T in book filename (if there is a " - " between the three parts) anything in brackets at the end remains in place.
Code:
(.*) - (.*) - ([^(]*)( \(.*\))?(\.[^(.]*)
\3 - \1 - \2\4\5
Swap A,T,S not ( )
Swap A,T,S to A,S,T in book filename (if there is a " - " between the three parts) anything in brackets remains in place.
Code:
(.*) - (.*) - ([^(]*)( \(.*\))?(\.[^(.]*)
\1 - \3 - \2\4\5

*NOTE - the Dollar Sign "$" or the Forward Slash "/" is used interchangeably in the replace depending on which renaming tool you are using.

Last edited by penguinaka; 07-26-2011 at 11:43 PM.
penguinaka is offline   Reply With Quote