Quote:
Originally Posted by louwin
@speakingtohe I confirmed your regex but the series no CANNOT have any non numeric in it (cannot be 1.5 for instance) and cannot be separated from the series by a "-". If you aren't interested in something . something then your regex is okay.
JFI I mucked about with it and got this one:-
(?P<author>[^_-]+)\s*-\s*(?P<series>[^_0-9-]*)\s*-\s*(?P<series_index>[0-9]*(.?[0-9]*))?\s*-\s*(?P<title>[^_].+)
It insists on 4 parts (" - " between series and series_index) and will accept any numeric series number (even 1234.56789)  But it MUST have three "-" preceeded by and followed by at least one space thus "A N Author - Whatever Series - 8.5 - Just Any Title.txt"
So strictly speaking, NO regex (I think) will do what was asked in the first place.
You have to choose ONE format and stick to it. You can "Add books" in one format then change the regex and "Add" more books in the second format
Both regexs will transfer the Author EXACTLY as input - LN, FN or FN LN or ????
I am SLOWLY beginning to understand regexs 
|
First: I don't understand the regex and don't pretend to. Never impied it was mine. Was just a suggestion for a starting point and I was fine that you ignored it when mentioned first.
Second: your previous regex is selectable from the dropdown list so switching is not that hard but if you are manually renaming all of your books first shouldn't be an issue.
Third: Maybe 1.5 doesn't work, no idea. maybe 01.5 will work. Probably not. Kind if a special case in my experience as most series books I read are numbered in a straighforward manner and I adjust the others if I have to but usually I don't as I am not big into romances currently.
Glad you are getting the hang of regexes and wish that I would expend some effort to do the same. But feeling a bit annoyed at being browbeaten and belittled at the moment