Quote:
Originally Posted by ilovejedd
Similar question. I have my books named:
Author - Series ## - Title
Code:
(?P<author>[^_]+) - (?P<series>.*?) (?P<series_index>[0-9]*?) - (?P<title>.+)
Author - Title
Code:
(?P<author>[^_]+) - (?P<title>.+)
How do I combine the two so they're just one regular expression? 
|
Surround the series + number + - part in parentheses and follow it by {0,1}