View Single Post
Old 08-01-2011, 10:26 PM   #17
RolandD
Fanatic
RolandD ought to be getting tired of karma fortunes by now.RolandD ought to be getting tired of karma fortunes by now.RolandD ought to be getting tired of karma fortunes by now.RolandD ought to be getting tired of karma fortunes by now.RolandD ought to be getting tired of karma fortunes by now.RolandD ought to be getting tired of karma fortunes by now.RolandD ought to be getting tired of karma fortunes by now.RolandD ought to be getting tired of karma fortunes by now.RolandD ought to be getting tired of karma fortunes by now.RolandD ought to be getting tired of karma fortunes by now.RolandD ought to be getting tired of karma fortunes by now.
 
RolandD's Avatar
 
Posts: 561
Karma: 3228980
Join Date: Aug 2010
Location: Branson, MO, USA
Device: Kindle Touch is now my main eReader.
Quote:
Originally Posted by Mixx View Post
You need to go to "Edit Metadata in Bulk" (context menu), go to the second tab "Search and Replace", there you select "Search Field" to be "authors" and (in some versions of Calibre) put the result back into "authors". "Search mode": Regular expression. Then for

FN LN --> LN, FN

Search for:
Code:
(.*) (.*)
Replace with:
Code:
\2, \1
LN, FN --> FN LN

Search for:
Code:
(.*), (.*)
Replace with:
Code:
\2 \1
You see at the bottom what's gonna happen to your selected items and can even test your own cases.

If you like what you are doing, you can save these cases, too. I actually call them "FN LN --> LN, FN" and "LN, FN --> FN LN". Then you just pull them down, as needed.

Regards, Mixx
Just saved me several hours of work. Thank you, so much!!!!!!
RolandD is offline   Reply With Quote