Quote:
Originally Posted by chango714
Ok, I have figured out how to pull in the series name from the file name into Calibre. The file name is 'John Sandborn - Prey 1 - Rules Of Prey'. I import this string in (I turned off searching the file for metadata and reversed and added Series. Hence 'Title - Series - Author' becomes 'Author - Series - Title') and it fills the Series box with 'Prey 1' and the Book number stays at 1.00.
|
This regex works for this title. Just place it in Preferences - Adding books.
Code:
^((?P<author>([^\-_0-9]+)(?=\s*-\s*)(?!\s*-\s*[0-9.]+)|\b))(\s*-\s*)?((?P<series>[^0-9\-]+)(\s*-\s*)?(?P<series_index>[0-9.]+)\s*-\s*)?(?P<title>[^\-_0-9]+)