Thread
:
Importing Ebooks, regexp confusion
View Single Post
09-27-2011, 12:17 PM
#
7
chaley
Grand Sorcerer
Posts: 12,475
Karma: 8025702
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
@ZaMotH:
Try
Code:
((?P<series>.+) # (?P<series_index>.+) -\s*)?(?P<title>[^\[]*)(\s*\[(?P<author>.+)\])?
If there is no author, this will still throw the exception until the next calibre release or until you update if you are running from source.
chaley
View Public Profile
Visit chaley's homepage!
Find More Posts by chaley
Track Posts by chaley via RSS