Quote:
Originally Posted by dwanthny
You can do what I do and use something like Freecommander and bulk rename those files, easily lopping off the front end. Once this is done the following regex in Adding books should work for you. Just don't ask me to explain it.
Code:
^((?P<author>([^\-_0-9]+)(?=\s*-\s*)(?!\s*-\s*[0-9.]+)|\b))(\s*-\s*)?((?P<series>[^0-9\-]+)(\s*-\s*)?(?P<series_index>[0-9.]+)\s*-\s*)?(?P<title>[^\-_0-9]+)
|
If he's going to use a regex, the regex can lop off the front end easily, as long as the front end is consistently preceded by the space - hyphen - space form.
Just stick a non-greedy match .*? for anything followed by a space - hyphen - space in front and it matches, but ignores the stuff in front of the first space - hyphen - space.
This should do it:
Code:
^.*? - ((?P<author>([^\-_0-9]+)(?=\s*-\s*)(?!\s*-\s*[0-9.]+)|\b))(\s*-\s*)?((?P<series>[^0-9\-]+)(\s*-\s*)?(?P<series_index>[0-9.]+)\s*-\s*)?(?P<title>[^\-_0-9]+)