![]() |
#1 |
Member
![]() Posts: 12
Karma: 10
Join Date: Jul 2010
Device: sony prs-505
|
How do I automatically remove second and subsequent authors?
Is there a way using regular expressions to remove second and subsequent authors from the AUTHORS column?
I have a large number of books which have more then one author and I wish to have the author column display only the first author. The second(and subsequent) authors appear immediately after the first appearance of the ";" character - so I assume there must be a away to delete the " ;" character and everything after it? Can anyone help - I've tried various expressions but havent achieved the desired result. Many Thanks Anzhelika |
![]() |
![]() |
![]() |
#2 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,908
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
I think this might work: Code:
(.+)\:.+ replace: \1 |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Newbie Nerd
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 114
Karma: 1000354
Join Date: Feb 2012
Location: Perth, Western Australia
Device: iPad 3 64Gb Black
|
Shouldn't that colon be a semi-colon?
![]() |
![]() |
![]() |
![]() |
#4 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,908
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
![]() |
![]() |
![]() |
#5 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,336
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
FWIW, you can also replace the ';' with '&' so that calibre will know there are multiple authors. As it is, calibre thinks that there is one author with a lot of words in the name.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,908
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
![]() |
![]() |
![]() |
#7 |
Member
![]() Posts: 12
Karma: 10
Join Date: Jul 2010
Device: sony prs-505
|
Multiple Authors
Many thanks to you all for taking the trouble to respond.
I will try out the suggestions later today and let you know how I get on. Regards Anzhelika |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Automatically remove tags when adding books | garytshepherd | Library Management | 12 | 03-13-2012 11:16 AM |
How to automatically remove old news? | TechnoCat | Calibre | 3 | 01-18-2012 11:24 AM |
Kindle - Automatically remove/archive old news ? | Copenhagenmail | Devices | 8 | 12-14-2011 05:14 PM |
RFE: Remove remove tags in bulk edit | magphil | Calibre | 0 | 08-11-2009 10:37 AM |
Short Fiction Authors, Various: Stories by Foreign Authors: Polish, Greek, Belgian. v1, 20 Feb 2008 | Madam Broshkina | Kindle Books (offline) | 0 | 02-20-2008 08:41 PM |