View Single Post
Old 03-17-2010, 06:48 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 wwaldo View Post
I have a bunch of PDF books i am trying to add to my Calibre library. The title of the books are of three natures

Author - Seriers - Book name
i.e. - Will Greenway - Reality's Plaything 01 - Reality's Plaything.pdf

Author - Book name
i.e. - Will Greenway - Reality's Plaything

Book name - Author
Reality's Plaything - Will Greenway

What are the file name Meta data settings in preferences to get the right results from an import.

i.e. Author - Title
Will Greenway - Reality's Plaything
(?P<author>.+) - (?P<title>[^_]+)

Thanks.
There isn't one that will do all 3. The last one "Book name - Author" is the same as the penultimate one "Author - Book name" as far as Calibre can tell.

I use for the first two:
Code:
^((?P<author>([^\-_0-9]+)(?=\s*-\s*)(?!\s*-\s*[0-9.]+)|\b))(\s*-\s*)?((?P<series>[^0-9\-]+) (- )?(?P<series_index>[0-9.]+)?\s*-\s*)?(?P<title>.+)
Starson17 is offline   Reply With Quote