View Single Post
Old 02-04-2010, 04:26 PM   #2
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by jomaweb View Post
Hi all

I got a bunch of eBooks with this filename structure:

Surname, Firstname - book Title

When adding to Calibre library, using the default Regular Expression

(?P<author>[^_]+) - (?P<title>.+)

author appears with a strange symbol (pipe?) between name and surname because of the comma.

I'm not a computer geek, so if anyone can tell me how to fix the regular expression to add this kind of files I'll appreciate it.

A solution for bulk repairing the previously hundred books addedd is possible too? Fixing one by one is a lot of time consuming

Thanks in advance
In Preferences, under Add/Save, select the "Swap author firstname and lastname" checkbox. It will split and swap at the comma. The regex you are using will work (but not for series names and numbers). Mass fixing isn't easy. For a few hundred, it may be easiest to simply remove and re-add them.
Starson17 is offline   Reply With Quote