Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 11-29-2022, 05:12 PM   #1
gstock97
Junior Member
gstock97 began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Sep 2015
Device: Nook Simple Reader
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, 07:58 AM   #2
gstock97
Junior Member
gstock97 began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Sep 2015
Device: Nook Simple Reader
So no one can assist? Everything I try doesn't seem to work.
gstock97 is offline   Reply With Quote
Advert
Old 12-10-2022, 11: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: 28,238
Karma: 47704482
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2, 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 online now   Reply With Quote
Old 12-10-2022, 12:49 PM   #4
Wiggo
Leftutti
Wiggo has learned how to read e-booksWiggo has learned how to read e-booksWiggo has learned how to read e-booksWiggo has learned how to read e-booksWiggo has learned how to read e-booksWiggo has learned how to read e-booksWiggo has learned how to read e-booksWiggo has learned how to read e-books
 
Wiggo's Avatar
 
Posts: 105
Karma: 948
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:	20
Size:	213.9 KB
ID:	198315  
Wiggo is online now   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 10:00 AM
Predefined regex for Regex-function sherman Editor 3 01-19-2020 06:32 AM
Help for a regex PenguinCEO Editor 2 10-14-2019 10:39 AM
Regex help please BookJunkieLI Calibre 3 07-01-2014 04:18 PM
Help with a regex A.T.E. Calibre 1 04-05-2010 08:50 AM


All times are GMT -4. The time now is 10:12 PM.


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