View Single Post
Old 08-25-2012, 11:35 AM   #2
louwin
Newbie Nerd
louwin ought to be getting tired of karma fortunes by now.louwin ought to be getting tired of karma fortunes by now.louwin ought to be getting tired of karma fortunes by now.louwin ought to be getting tired of karma fortunes by now.louwin ought to be getting tired of karma fortunes by now.louwin ought to be getting tired of karma fortunes by now.louwin ought to be getting tired of karma fortunes by now.louwin ought to be getting tired of karma fortunes by now.louwin ought to be getting tired of karma fortunes by now.louwin ought to be getting tired of karma fortunes by now.louwin ought to be getting tired of karma fortunes by now.
 
louwin's Avatar
 
Posts: 114
Karma: 1000354
Join Date: Feb 2012
Location: Perth, Western Australia
Device: iPad 3 64Gb Black
It's 23:30 so just a quick answer....

You put a (....)?* around the "series" extraction logic.

Quickly....

(?P<author>.+?) - (?P<title>.+)( - (?P<series>.+))?*

Sorry, it's a while since I have done anything with Regex and it's late but that should get you on the right track....

Also sorry, title and author swapped around by your question....
louwin is offline   Reply With Quote