(?P<author>[^-].+) - (?P<title>.+) should work
This changes the author search to look for a sequence of any characters that are not -'s.
I think there are other approaches that should word as well (look for a discussion on Greedy / Lazy pattern matching).
|