View Single Post
Old 11-01-2009, 05:55 PM   #1
gandor62
Connoisseur
gandor62 began at the beginning.
 
gandor62's Avatar
 
Posts: 99
Karma: 14
Join Date: Jun 2008
Location: Brisbane Australia
Device: iPod Touch, Ipad, Kindle 2
Regex help needed

can any experts out there please help me with extracting series from a title

[Otherland 03]

I need to pull the series and series index and lose the [ ]

I can get the entire thing to series but cant work out how to seperate them

this is what I have to date

(?P<author>[^_-]+) -?\s*(?P<series>.+?)(?P<series_index>[0-9]*)\s*-\s*(?P<title>[^_].+) ?

Gratefully appreciate help
Cheers
Tony
gandor62 is offline   Reply With Quote