|
|
#1 |
|
Incanus
![]() ![]() ![]() Posts: 313
Karma: 210
Join Date: Oct 2017
Location: Chile
Device: Boyue Likebook T80D
|
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 09:04 AM. Reason: Typo |
|
|
|
|
|
#2 |
|
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,270
Karma: 61916422
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 | |
|
|
|
|
#3 |
|
Incanus
![]() ![]() ![]() Posts: 313
Karma: 210
Join Date: Oct 2017
Location: Chile
Device: Boyue Likebook T80D
|
|
|
|
|
|
|
#4 |
|
Incanus
![]() ![]() ![]() Posts: 313
Karma: 210
Join Date: Oct 2017
Location: Chile
Device: Boyue Likebook T80D
|
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 12:01 PM. Reason: Found possible solution in Calibre's Forum |
|
|
|
|
|
#5 | |
|
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,270
Karma: 61916422
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 | |
|
|
|
|
#6 |
|
Incanus
![]() ![]() ![]() Posts: 313
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] |
|
|
|
|
|
#7 |
|
Incanus
![]() ![]() ![]() Posts: 313
Karma: 210
Join Date: Oct 2017
Location: Chile
Device: Boyue Likebook T80D
|
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] |
|
|
|
|
|
#8 |
|
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,270
Karma: 61916422
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 11:33 AM |
| Adding Books: regular expression request | maxlinworm | Library Management | 1 | 02-17-2018 07:32 PM |
| Calibre book adding: Regular expression request... | Tweetygirl10111 | Calibre | 13 | 07-13-2017 10:14 PM |
| Calibre book adding: Regular expression request... | Spiffy | Calibre | 34 | 01-19-2016 02:03 PM |
| Regular expression: swap author firstname and lastname | An_od | Library Management | 2 | 01-17-2013 11:55 AM |