View Single Post
Old 09-27-2010, 12:35 AM   #1
jhart711
Junior Member
jhart711 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Sep 2010
Device: nook
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.
jhart711 is offline   Reply With Quote