View Single Post
Old 06-15-2009, 07:25 AM   #5
ldolse
Wizard
ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.
 
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
As I recall, I was able to tweak the default regex to handle title, author, and series, with series being optional. But I don't remember what I tweaked it to....

This is what my current one is, no idea if this is the default or even what I used previously, but it looks like it covers all three:
Code:
(?P<author>[^_]+?) - ((?P<series>.*) (?P<series_index>[0-9]*) - )?(?P<title>.+)
I recall some other people on other threads having questions about how to set this regex, and I borrowed mine from there, so it would be worth your time to search the forums a bit.

Note even with that it seemed like sometimes Calibre preferred the Metadata in some filetypes over my regex. However that was many versions back when I did my major import, and I have no idea whether it was my fault for not setting some option which forced Calibre to use the regex or whether it was a bug that has since been resolved.

Here's a thread with some other suggestions:
https://www.mobileread.com/forums/sho...t=series+regex

Last edited by ldolse; 06-15-2009 at 11:18 PM.
ldolse is offline   Reply With Quote