View Single Post
Old 10-01-2008, 06:25 AM   #5
Azhad
Member
Azhad began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Dec 2007
Location: Rome, Italy
Device: PRS-500, PRS-505, Milestone, Galaxy Tab
Ok, I'm getting crazy...

this is expression I got now:

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

it recognize:
Name Surname - Name of the Series 01 - Title of the Book.pdf
and
Name Surname - Title of the Book.pdf (notice the 3 spaces after the - )

I can't, for the love of God, erase those leading spaces from the expression...
Can anybody help?
I don't ssssspeck sssspython well...
Azhad is offline