Regular Expression For Adding Books
Hi All,
I am trying to work out an expression for adding epub ebooks into Calibre.
I am using this code for files in this format Author - Series - Title.
(?P<author>[^_-]+) -?\s*(?P<series>[^_0-9-]*)(?P<series_index>[0-9]*)\s*-\s*(?P<title>[^_].+) ?
But is doesn't work when the series is missing.
Ken Follett - Kingsbridge - 1. A katedralis.epub
Title: 1. A katedralis
Author: Ken Follett
Series: Kingsbridge
Series Index:
Can someone please help?
Barthazor
|