Regular Expression For Adding Books
I am trying to work out an expression for adding epub ebooks into Calibre, but I am going around in circles.
I am using this code for files in this format Title - Series - Author.
(?P<title>.+) -? (?P<series>[^_0-9-]*)(?P<series_index>[0-9]*) - (?P<author>[^_].+) ?
But is doesn't work when the series is missing.
Can someone please help?
John
Last edited by jhart711; 09-27-2010 at 12:42 AM.
|