View Single Post
Old 10-29-2011, 12:24 AM   #29
Serpentine
Evangelist
Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.
 
Posts: 416
Karma: 1045911
Join Date: Sep 2011
Location: Cape Town, South Africa
Device: Kindle 3
Quote:
Originally Posted by salines View Post
"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 View Post
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
Serpentine is offline   Reply With Quote