View Single Post
Old 03-04-2015, 08:32 PM   #8
JohnnyBook
Addict
JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.
 
Posts: 203
Karma: 126824
Join Date: Dec 2008
Location: Out There
Device: K3 W/3G (Fixed screen!) & Paperwhite Wifi
Quote:
Originally Posted by eschwartz View Post
Code:
(?P<series>[A-Za-z ]+)-(?P<series_index>[0-9]+) (?P<title>.+) \((?P<author>[A-Za-z. ]+)\) (?P<published>[0-9]+)
Pubdate seems to be making up its own month/day
Ok. it works in Calibre, except, if the book does not have a published date... then it fails and no parsing is done at all and the title is the file name and the rest are blank.

Is there a way to make the published date part optional?

Last edited by JohnnyBook; 03-04-2015 at 08:35 PM.
JohnnyBook is offline   Reply With Quote