Quote:
Originally Posted by kovidgoyal
Surround the series + number + - part in parentheses and follow it by {0,1}
|
Thanks for the quick response.
The modified expression works ok with files named Author - Title
For:
Author - Series ## - Title
it gave me the following:
Title: Title
Author: Author - Series ##
Series: No match
Series Index: No match
ISBN: No match
I also tried
(?P<author>[^_]+) - ((?P<series>.*) (?P<series_index>[0-9]*) - )?(?P<title>.+) but it gave me the same result as above.
Question, what does [^_] signify? Is it necessary for Calibre to make the author match or can I change it to something else? I've tried grouping the ' - ' with other parts of the expression and the series info always ends up as part of the author name unless both instances of ' - ' are present. Methinks the regex for author might be a bit too greedy?