Originally Posted by wwaldo
I have a bunch of PDF books i am trying to add to my Calibre library. The title of the books are of three natures
Author - Seriers - Book name
i.e. - Will Greenway - Reality's Plaything 01 - Reality's Plaything.pdf
Author - Book name
i.e. - Will Greenway - Reality's Plaything
Book name - Author
Reality's Plaything - Will Greenway
What are the file name Meta data settings in preferences to get the right results from an import.
i.e. Author - Title
Will Greenway - Reality's Plaything
(?P<author>.+) - (?P<title>[^_]+)
There isn't one that will do all 3. The last one "Book name - Author" is the same as the penultimate one "Author - Book name" as far as Calibre can tell.
I use for the first two:
^((?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>.+)