View Single Post
Old 09-23-2014, 11:50 PM   #3
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Try:
Code:
((?P<series>.+) (?P<series_index>\d+) )?(?P<title>.+) - (?P<author>[^_]+)
Optionally searches for everything up to a number as series, and saves the number as the series index. Everything afterward is the same pattern as the default. If a number is not detected, it will fallback on the regular template. Warning -- If your title has a number in it, and there is no series, the title up to and including the number will be detected as series.
eschwartz is offline   Reply With Quote