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...
|