Quote:
Originally Posted by citac
Finally, it turned out this worked:
^((?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>.+)
|
That looks like the one I use, and I think it's one I wrote - I recognize the optional square brackets
That's what I get for listening to you when you said:
Quote:
all the mentions of command lines, regex, codes in curly brackets are making my head spin.
|
I believed you when you said your files were in a particular format and I tried to make it simple, not flexible.
I'm really going to have to look at why my simpler expressions threw errors.
It will when you actually add a book to calibre with a blank author.