Adding Books, regular expression
First of all, I am very happy I found Calibre; it made my ebook collection organization so much better~
I am trying to figure out how to edit the regular expression for adding metadata using the filename. I know there are a lot of post regarding this but none of them works for me (either I'm not pasting it right or I'm just stupid and need someone to walk me through the steps~)
I currently have this:
(?P<author>[^_]+)-(?P<series>.+) (?P<series_index>.+)-(?P<title>.+)
which works GREAT when I have series in between the author and title.
ie Name_Name-Series_##-Title_title_tile.ext
(works with or without "_")
What I would like is for it to recognize files without the series
ie Name_Name-Title_title_tile.ext
and at the same time recognize those with series if present...
any possibilities?
Thanks in advance!!
|