Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 08-20-2012, 02:29 PM   #1
Ptaker
Enthusiast
Ptaker began at the beginning.
 
Posts: 25
Karma: 10
Join Date: Jun 2012
Device: K3 Wifi No Ads/K4 Wifi ads
HELP with Kindle "Adding Books" Expression

PROBLEM: I get caught with adding books that have a book title with an extra dash between words with no space in the title, such as:
John Doe - [Hellbent 05] - Get-Smart Robert.mobi

Calibre does not separate the author, series and book name in this example because of the dash in the book title (Get-Smart). How can I fix the expression so it works correctly? I know Calibre uses the dash as the separator but the second dash as part of the title throws everything off.

DESIRED RESULT
Title: Get-Smart Robert
Author: John Doe
Series: Hellbent
Series Index: 05

Present expression for "Adding Books" in Calibre is as follows:
^((?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>[a-zA-Z1-9' ,:&]+)(\(.*\))?$

Any help would be appreciated. I got most of this expression from this forum and just added a few characters to it so I can add books with &: ' and , in the title.

Last edited by Ptaker; 08-24-2012 at 03:02 PM.
Ptaker is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom column: "Updated date", when adding new "versions" of the same file? enriquep Library Management 16 11-03-2011 10:46 AM
Help in adding books using "regular expression" DM399 Calibre 2 07-08-2011 06:38 AM
"Database Disk Image is malformed" when connecting to Calibre after adding new books djorkboy Kobo Reader 13 10-07-2010 08:47 PM
"Database Disk Image is malformed" when connecting to Calibre after adding new books djorkboy Calibre 1 10-06-2010 08:59 PM
Help: Is there a search expression for "books without Series"? LARdT Calibre 3 01-20-2010 09:34 PM


All times are GMT -4. The time now is 04:06 AM.


MobileRead.com is a privately owned, operated and funded community.