Regular Expressions Help
Hi everyone,
most of my ebooks are sorted using the following structure: author, series seriesnumber, title.
While importing these books into calibre, i use following regular expression:
(?P<author>((?!\s-\s).)*)\s-(?:\s(?P<series>((?!\s-\s).)*)\s-)?(?:\s(?P<series_index>((?!\s-\s).)*)\s-)?\s(?P<title>.*)
Now it will sort author, series and title automatically. Only the series_index will not display properly. Where is the fault in the expression setting?
|