Quote:
Originally Posted by salines
"Fielding, Joy-ebbes - Tanz, Püppchen, tanz.pdf"
|
Code:
(?P<author>.+?)\s+-\s+(?:(?P<series>.+?)\s*(?:(?P<series_index>\d+(?:\.\d*)?))?\s+-\s+)?(?P<title>.+)
Try that, it's a bit more robust and seems to fit your other cases.
Quote:
Originally Posted by salines
Should I switch the used regex if I add book for series and none series?
|
It should deal with books no series now, I had placed something in the wrong conditional