@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.
Quote:
Originally Posted by Shadewing
The books are all in txt format and come with names in of 3 formats:
Author - Title.txt
Author - Series - Title.txt
Author - Series - Series No. - Title.txt
|
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