Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 06-15-2013, 01:33 PM   #1
macnab69
Zealot
macnab69 shares his or her toysmacnab69 shares his or her toysmacnab69 shares his or her toysmacnab69 shares his or her toysmacnab69 shares his or her toysmacnab69 shares his or her toysmacnab69 shares his or her toysmacnab69 shares his or her toysmacnab69 shares his or her toysmacnab69 shares his or her toysmacnab69 shares his or her toys
 
Posts: 124
Karma: 5754
Join Date: Jan 2012
Location: South Africa
Device: Kindle 4
Add book regex help

File format:
author - [series] [seriesindex] title

Example filename:
Fred Couples - [Success with Golf] [23] Distracting your Opponent.epub

Wanted:
Author = Fred Couples
Series: Success with Golf
Series index: 23
Title: Distracting your Opponent

Regex so far:
(?P<author>.+) - \[(?P<series>.+)\] \[(?P<seriesindex>.+)\] (?P<title>[^_]+)

I get:
Author = Fred Couples
Series = Success with Golf
Title = Distracting your Opponent
Series index : No match

Maybe <seriesindex> is wrong?

I would prefer the format:
author - [series seriesindex] title
but that is not really important.
macnab69 is offline   Reply With Quote
Old 06-16-2013, 01:28 AM   #2
gabby98
Wizard
gabby98 ought to be getting tired of karma fortunes by now.gabby98 ought to be getting tired of karma fortunes by now.gabby98 ought to be getting tired of karma fortunes by now.gabby98 ought to be getting tired of karma fortunes by now.gabby98 ought to be getting tired of karma fortunes by now.gabby98 ought to be getting tired of karma fortunes by now.gabby98 ought to be getting tired of karma fortunes by now.gabby98 ought to be getting tired of karma fortunes by now.gabby98 ought to be getting tired of karma fortunes by now.gabby98 ought to be getting tired of karma fortunes by now.gabby98 ought to be getting tired of karma fortunes by now.
 
gabby98's Avatar
 
Posts: 1,473
Karma: 1399697
Join Date: Jul 2012
Device: Android, Nook Simple Touch, Nook Color, ..., Glo
series_index is what should be used
gabby98 is offline   Reply With Quote
Old 06-16-2013, 02:00 AM   #3
macnab69
Zealot
macnab69 shares his or her toysmacnab69 shares his or her toysmacnab69 shares his or her toysmacnab69 shares his or her toysmacnab69 shares his or her toysmacnab69 shares his or her toysmacnab69 shares his or her toysmacnab69 shares his or her toysmacnab69 shares his or her toysmacnab69 shares his or her toysmacnab69 shares his or her toys
 
Posts: 124
Karma: 5754
Join Date: Jan 2012
Location: South Africa
Device: Kindle 4
Thanks.
macnab69 is offline   Reply With Quote
Reply

Tags
add book, regex

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Add Book Regex to Custom field adept22 Library Management 3 10-07-2014 08:33 PM
Want RegEx to add books to Calibre huon Library Management 0 02-02-2012 01:52 AM
Regex Help - Add Book - Insert Filename into Custom Field nynaevelan Library Management 3 10-12-2011 02:14 PM
Add Books - Regex Help Please nynaevelan Calibre 2 08-16-2011 02:30 PM
Add book regex no longer works magphil Calibre 3 03-24-2010 04:40 PM


All times are GMT -4. The time now is 02:23 AM.


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