View Single Post
Old 12-17-2010, 06:57 PM   #8
kiwidude
Calibre Plugins Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,732
Karma: 2197770
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
Quote:
Originally Posted by lxrcab View Post
@kiwidude
Would you please give me a plaintext example of a complete "author series seriesindex title" that your regex digests with whatever punctuation is used?
Others have made good suggestions here and sounds like you have been sorted but I will partially answer your original question.

I posted that regex because it would work for the OP's named request. Specifically it is designed to handle:
Author - Series # - Title
Author - Title

In my case it would handle filenames like these:
Bloggs, Joe - My title
Bloggs, Joe - Some Series 1 - My title
Bloggs, Joe - Some Series 1.5 - My title
Bloggs, Joe - Some Series 1.5 - My title with sub-title hyphen

One further comment. I actually find it faster to change the filenames into a standard format, than it is to switch regexes, particularly if you have a bunch of books with randomly formatted names. I slice and dice the filenames of the files to match my regex and then do a bulk import. I found it way too fiddly to keep changing the regex in Calibre, particularly as it keeps no history so you have to store them all externally and keep pasting them in before an add operation.
kiwidude is offline   Reply With Quote