View Single Post
Old 11-12-2013, 04:16 PM   #1
lauralein
Junior Member
lauralein began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Nov 2013
Device: Pocketbook touch lux
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?
lauralein is offline   Reply With Quote