View Single Post
Old 02-23-2010, 05:39 AM   #5
kapaka
Member
kapaka began at the beginning.
 
Posts: 18
Karma: 10
Join Date: Dec 2008
Device: BQ
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.
Thank You So Much!!!
I have been trying to figure out regular expression for just this, was about to quit and edit manually
kapaka is offline   Reply With Quote