03-11-2019, 08:03 AM | #1 |
Incanus
Posts: 275
Karma: 210
Join Date: Oct 2017
Location: Chile
Device: Boyue Likebook T80D
|
Regular Expression Request for Author Custom Field
Hello:
I'd like some help with regular expressions. I'm attempting to create two custom fields:
Awaiting your kind reply, [INCANUS] Last edited by Incanus; 03-11-2019 at 08:04 AM. Reason: Typo |
03-11-2019, 09:36 AM | #2 |
Well trained by Cats
Posts: 29,977
Karma: 56143930
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
While the sample shows Author_sort, it works with any text type field
Code:
{authors[0]}
|
Advert | |
|
03-11-2019, 09:42 AM | #3 |
Incanus
Posts: 275
Karma: 210
Join Date: Oct 2017
Location: Chile
Device: Boyue Likebook T80D
|
|
03-11-2019, 10:57 AM | #4 |
Incanus
Posts: 275
Karma: 210
Join Date: Oct 2017
Location: Chile
Device: Boyue Likebook T80D
|
Regular Expression Request for Author Custom Field
It would seem the answer for #2 is from the following post:
In my case, if Code:
#first_author = {authors[0]} Code:
#first_author_letter = {#first_author:.1} [INCANUS] Last edited by Incanus; 03-11-2019 at 11:01 AM. Reason: Found possible solution in Calibre's Forum |
03-11-2019, 01:11 PM | #5 | |
Well trained by Cats
Posts: 29,977
Karma: 56143930
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
My use was to create a folder by Authors Ln LETTER, to hod books by Author Code:
Authors_ {author_sort[0]}/{authors}-{title} |
|
Advert | |
|
03-11-2019, 01:37 PM | #6 |
Incanus
Posts: 275
Karma: 210
Join Date: Oct 2017
Location: Chile
Device: Boyue Likebook T80D
|
Thanks for your input, I'll do some testing to check how it is actually working.
Gratefully, [INCANUS] |
03-11-2019, 09:08 PM | #7 |
Incanus
Posts: 275
Karma: 210
Join Date: Oct 2017
Location: Chile
Device: Boyue Likebook T80D
|
Regular Expression Request for Author Custom Field
After some experimentartion, this is what worked for me:
Code:
First Author = {author:sublist(0,1,&)} First Letter of First Author = {author[0]} Code:
{author[0]}/{author:sublist(0,1,&)}/{title} - {author:sublist(0,1,&)} Cheers, [INCANUS] |
03-11-2019, 10:45 PM | #8 |
Well trained by Cats
Posts: 29,977
Karma: 56143930
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
Tags |
author, custom field, regular expression |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Have a Regular Expression problem with Author Field | searcygr | Library Management | 2 | 09-21-2018 10:33 AM |
Adding Books: regular expression request | maxlinworm | Library Management | 1 | 02-17-2018 06:32 PM |
Calibre book adding: Regular expression request... | Tweetygirl10111 | Calibre | 13 | 07-13-2017 09:14 PM |
Calibre book adding: Regular expression request... | Spiffy | Calibre | 34 | 01-19-2016 01:03 PM |
Regular expression: swap author firstname and lastname | An_od | Library Management | 2 | 01-17-2013 10:55 AM |