Quote:
Originally Posted by AndrewKantor
Ah, wonderful! Thank you both. Regex has always given me fits, but I was able to figure enough to get it to import properly. W00t!
|
here is the regex I'm currently using, it should handle the naming scheme you use for your books, and several others, particularly, series names and numbers:
Code:
^((?P<author>([^\-_0-9]+)(?=\s*-\s*)(?!\s*-\s*[0-9.]+)|\b))(\s*-\s*)?((?P<series>[^0-9\-]+) (- )?(?P<series_index>[0-9.]+)\s*-\s*)?(?P<title>.+)
If you haven't already figured it out, I'd recommend you turn on the option to get metadata only from filenames and turn off the option to overwrite author/title metadata during fetch. You can then highlight multiple files and let Calibre go get covers and other"social" metadata, if you want.
If you have problems during the import, let us know.