thanks i think it works
^(\s*(?P<series>[^0-9-]*)(?P<series_index>[0-9]*)(\s-\s?)|)?( ??(\s*)(?P<title>[^_].*))(\s-\s)(?P<author>[^_].*)
but i have another problem
file type
serial serialnumber - title - autho.epub
example:
books of films 10 - Rambo - Silvester.epub > ok
books of films 10 - Rambo - Silvester.epub > ok
books of films - Rambo - Silvester.epub > ok
Rambo - Silvester.epub > ok
Rambo - Silvester.epub > ok
BUT
books of films 10 -Rambo - Silvester.epub >fail
if i have more than one space between the numbre and the "-" it fails
after so many changes I'm lost
done
let me know if you see an error
^(\s*(?P<series>[^0-9]*)(?P<series_index>[0-9]*)\s*(\s-\s)|)?( ??(\s*)(?P<title>[^_].*))(\s-\s)(?P<author>[^_].*)
thanks a lot
Last edited by leria; 04-05-2011 at 08:28 AM.
|