View Single Post
Old 02-22-2010, 10:39 AM   #4
Ozzy
Junior Member
Ozzy began at the beginning.
 
Ozzy's Avatar
 
Posts: 2
Karma: 10
Join Date: Feb 2010
Device: PC
@ Starson17 -- That's a great expression, exactly what I was looking for. Thnx.

Quote:
Originally Posted by Starson17 View Post
This is what I'm using now:
Code:
^((?P<author>([^\-_0-9]+)(?=\s*-\s*)(?!\s*-\s*[0-9.]+)|\b))(\s*-\s*)?((?P<series>[^0-9\-]+) (- )?(?P<series_index>[0-9.]+)\s*-\s*)?(?P<title>.+)
It will parse your two examples and many others. Yours doesn't get the series_index. There are several regex threads here if you want more options.
Ozzy is offline   Reply With Quote