View Single Post
Old 09-20-2010, 04:22 PM   #2
kacir
Wizard
kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.
 
kacir's Avatar
 
Posts: 3,463
Karma: 10684861
Join Date: May 2006
Device: PocketBook 360, before it was Sony Reader, cassiopeia A-20
Quote:
Originally Posted by asrrin29 View Post
Here is an example filename:

Code:
[Black Fleet Crisis] - 01 - Before The Storm (Michael Mcdowell).epub
I've altered default regex a little bit to get my authors to parse properly and this is what I currently use:

Code:
(?P<title>.+) \((?P<author>[^_]+)\)
What I need is a way to tell Calibre to ignore the series and series volume info, and only parse the title and author.
Code:
[Black Fleet Crisis] - 01 - Before The Storm (Michael Mcdowell).epub
Code:
.* - (?P<title>.+) \((?P<author>.+)\)
.* would eat up all the characters up to the last ' - ', because * quantifier is greedy

Have a look at this thread
https://www.mobileread.com/forums/showthread.php?t=99258

Last edited by kacir; 09-20-2010 at 04:24 PM.
kacir is offline   Reply With Quote