Add book regex help
File format:
author - [series] [seriesindex] title
Example filename:
Fred Couples - [Success with Golf] [23] Distracting your Opponent.epub
Wanted:
Author = Fred Couples
Series: Success with Golf
Series index: 23
Title: Distracting your Opponent
Regex so far:
(?P<author>.+) - \[(?P<series>.+)\] \[(?P<seriesindex>.+)\] (?P<title>[^_]+)
I get:
Author = Fred Couples
Series = Success with Golf
Title = Distracting your Opponent
Series index : No match
Maybe <seriesindex> is wrong?
I would prefer the format:
author - [series seriesindex] title
but that is not really important.
|