![]() |
#1 |
Member
![]() Posts: 14
Karma: 10
Join Date: Sep 2015
Device: Kindle Oasis
|
Regex help again, sorry.
I've got multiple files that have additional information in the title field upon import. This data is retrieved from the metadata via the import. I'm looking for a way to trim/truncate this info via bulk editing. Below are examples of how the titles are imported and result I'm after.
Lies and Retribution (Alex King Book 2) ----> Lies and Retribution The Alex King Series Book 8 (From The Shadows) ----> From The Shadows So any regex help is greatly appreciated. ![]() Thanks gstock97 |
![]() |
![]() |
![]() |
#2 |
Member
![]() Posts: 14
Karma: 10
Join Date: Sep 2015
Device: Kindle Oasis
|
So no one can assist? Everything I try doesn't seem to work.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,939
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
I gave up using file names for metadata (besides they vary in format) a long time ago.
Is there a reason to not use the Books metadata as a primary source? Preferences: Adding Books:Read from Contents rather than file name It the few cases like your first example. I use the Bulk Metadata edit (after import) to rearrange data ![]() ![]() |
![]() |
![]() |
![]() |
#4 |
Leftutti
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 549
Karma: 1717097
Join Date: Feb 2019
Location: Bavaria
Device: iPad Pro, Kobo Libra 2
|
Maybe not the smartest solution, but it works
Code:
Search for: (.*) \((.*) Replace: \1 |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
pdf regex question - regex that wraps to a new line | flyash | Conversion | 1 | 09-05-2021 09:00 AM |
Predefined regex for Regex-function | sherman | Editor | 3 | 01-19-2020 05:32 AM |
Help for a regex | PenguinCEO | Editor | 2 | 10-14-2019 09:39 AM |
Regex help please | BookJunkieLI | Calibre | 3 | 07-01-2014 03:18 PM |
Help with a regex | A.T.E. | Calibre | 1 | 04-05-2010 07:50 AM |