Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 11-29-2022, 04:12 PM   #1
gstock97
Member
gstock97 began at the beginning.
 
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
gstock97 is offline   Reply With Quote
Old 12-10-2022, 06:58 AM   #2
gstock97
Member
gstock97 began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Sep 2015
Device: Kindle Oasis
So no one can assist? Everything I try doesn't seem to work.
gstock97 is offline   Reply With Quote
Advert
Old 12-10-2022, 10:12 AM   #3
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
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 It has a WYG (What You will Get) view on the right.
theducks is offline   Reply With Quote
Old 12-10-2022, 11:49 AM   #4
Wiggo
Leftutti
Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.
 
Wiggo's Avatar
 
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
Attached Thumbnails
Click image for larger version

Name:	Screenshot 2022-12-10 174825.jpg
Views:	50
Size:	213.9 KB
ID:	198315  
Wiggo is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 12:04 AM.


MobileRead.com is a privately owned, operated and funded community.