View Single Post
Old 01-10-2010, 10:29 PM   #27
Tom2112
Tablet eReader
Tom2112 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterTom2112 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterTom2112 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterTom2112 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterTom2112 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterTom2112 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterTom2112 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterTom2112 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterTom2112 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterTom2112 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterTom2112 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameter
 
Posts: 45
Karma: 12620
Join Date: Dec 2009
Location: Western PA
Device: Samsung Galaxy Tab 7, iPad, Dell Streak 7, Moto RAZR MAXX
This regex does the same thing, as far as I can figure:

(?P<author>.+?) - ((?P<series>.+?) (?P<series_index>[0-9]+) - )?(?P<title>.+)

They both detect a series name and index and read them properly whether they're there or not. But it still has the comma problem in the author's name.
Tom2112 is offline