07-10-2018, 11:37 AM | #1 |
Age improves with wine.
Posts: 571
Karma: 95229
Join Date: Nov 2014
Device: Kindle Oasis, Kobo Libra II
|
Multiple regexes in "save book to disk" template?
A while ago I lost my settings, including the save-to-file filename template. For the directory name I'm now using {author_sort:re( & .*$,)} which takes out all but the first author. My old RE also stripped out non-word characters except for [,' -], but I can't remember how to do it in combination with stripping out all but the first author...
Can anyone point me in the right direction? Thanks... |
07-12-2018, 05:20 AM | #2 |
Age improves with wine.
Posts: 571
Karma: 95229
Join Date: Nov 2014
Device: Kindle Oasis, Kobo Libra II
|
Well, I did it like this:
{author_sort:re(([^\w\, '-]| & .*$),)} but I'm sure that's not how I did it before... |
Advert | |
|
Tags |
save to file, template |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
"Save to disk" template problem | Phssthpok | Library Management | 2 | 05-30-2018 05:30 AM |
"Add a book" template like "Save to disk"? | vr8ce | Library Management | 10 | 06-09-2017 09:16 AM |
Title format in "save book to disk"? | Phssthpok | Library Management | 5 | 11-26-2014 06:18 AM |
Request: separate "Preferred output format" from "Save to Disk" format | Katsunami | Calibre | 2 | 08-24-2014 12:23 PM |
Changing "Save Template" not working? | monkbythesea | Calibre | 10 | 08-04-2010 04:30 AM |