Current:
Code:
(?P<author>[^_-]+) -?\s*(?P<series>[^_0-9-]*)(?P<series_index>[0-9]*)\s*-\s*(?P<title>[^_].+) ?
New:
Code:
(?P<author>[^_]+) - (?P<series>[^_0-9-]+) (?P<series_index>[0-9]+) - (?P<title>[^_].+)
This *should* accept anything in the form:
author - series series_number - title
Where author can have a "-" as long as it is the only one without spaces surrounding it.
Series should be optional:
Code:
(?P<author>[^_]+)( - (?P<series>[^_0-9-]+) (?P<series_index>[0-9]+))? - (?P<title>[^_].+)