Similar question. I have my books named:
Author - Series ## - Title
(?P<author>[^_]+) - (?P<series>.*?) (?P<series_index>[0-9]*?) - (?P<title>.+)
Author - Title
(?P<author>[^_]+) - (?P<title>.+)
How do I combine the two so they're just one regular expression?