Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 06-30-2021, 11:43 AM   #1
solim
Junior Member
solim began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jun 2021
Device: Kindle
Question Bulk fixing Author/Title by using regex

I imported a collection of books but Author/Title wasn't successfully extracted on many of the books.
Some books have BookAuthor~BookTitle.pdf format and those ended up as
Title: BookAuthor~BookTitle
Author: "Untitled" or some random name

I can use Regex
(?P<author>[^_]+)\~(?P<title>.+)
for Adding new books that would split it properly, but is there a way to apply the regex to all existing books in bulk, either manually selecting all that are wrong, or even better, to apply that if there is ~ in author's name
solim is offline   Reply With Quote
Old 06-30-2021, 11:52 AM   #2
enuddleyarbl
Guru
enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.
 
enuddleyarbl's Avatar
 
Posts: 776
Karma: 1538394
Join Date: Sep 2013
Device: Kobo Forma
I'm mostly clueless about regex, but as a suggestion, try typing something like

author:"~"

in the library search bar to filter your collection to the subset you want, CTRL-A to select all of them, then go to

Edit Metadata > Edit Metadata in Bulk > Search and Replace

select "Regular Expression" as the Search Mode at the right and try your regex there.

Make some kind of backup before you try anything.
enuddleyarbl is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to regex bulk update the Title column from another column? halloleo Library Management 10 04-16-2021 02:27 AM
cannot figure out, please help: bulk metadata swap numeric mo/yr in title w/ regex anoukaimee Library Management 5 11-07-2019 02:36 AM
Bulk fill title with same value (like bulk rename author)? rebl Library Management 1 08-22-2014 12:05 PM
RegEx for title - author - series? mattam Library Management 10 08-29-2012 11:11 PM
libprs500 - title/author matching regex Megatron-UK Calibre 15 04-01-2008 04:39 PM


All times are GMT -4. The time now is 09:46 AM.


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