Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 03-05-2013, 12:24 PM   #1
MelBr
Zealot
MelBr ought to be getting tired of karma fortunes by now.MelBr ought to be getting tired of karma fortunes by now.MelBr ought to be getting tired of karma fortunes by now.MelBr ought to be getting tired of karma fortunes by now.MelBr ought to be getting tired of karma fortunes by now.MelBr ought to be getting tired of karma fortunes by now.MelBr ought to be getting tired of karma fortunes by now.MelBr ought to be getting tired of karma fortunes by now.MelBr ought to be getting tired of karma fortunes by now.MelBr ought to be getting tired of karma fortunes by now.MelBr ought to be getting tired of karma fortunes by now.
 
Posts: 105
Karma: 414068
Join Date: Feb 2013
Device: iPad Pro, Kobo Aura One
Sending selection from Search & Replace to different fields?

Hi all,

I have a bunch of books that have "<Series> <series#> - " prepended to the title filed. I've been looking at the S&R Meta panel and I'm not sure how to send my captures to two different fields: series & series_index (which I'm guessing is the number in the metadata dialog).

Here's what I have:



Is it possible to send these values to proper fields? Thanks!
MelBr is offline   Reply With Quote
Old 03-05-2013, 12:52 PM   #2
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,339
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
For series and series index, if you put the series index in the series field inside brackets, calibre will set the series index as well as the series. Slightly modifying your example, try:

Source field: title
Search for: ^(.*?) (\d+)( -.*)
Replace with: \1 [\2]
Destination field: series

You will need to remove the information from the title using a second pass.
chaley is offline   Reply With Quote
Advert
Old 03-05-2013, 01:00 PM   #3
MelBr
Zealot
MelBr ought to be getting tired of karma fortunes by now.MelBr ought to be getting tired of karma fortunes by now.MelBr ought to be getting tired of karma fortunes by now.MelBr ought to be getting tired of karma fortunes by now.MelBr ought to be getting tired of karma fortunes by now.MelBr ought to be getting tired of karma fortunes by now.MelBr ought to be getting tired of karma fortunes by now.MelBr ought to be getting tired of karma fortunes by now.MelBr ought to be getting tired of karma fortunes by now.MelBr ought to be getting tired of karma fortunes by now.MelBr ought to be getting tired of karma fortunes by now.
 
Posts: 105
Karma: 414068
Join Date: Feb 2013
Device: iPad Pro, Kobo Aura One
Quote:
Originally Posted by chaley View Post
For series and series index, if you put the series index in the series field inside brackets, calibre will set the series index as well as the series. Slightly modifying your example, try:

Source field: title
Search for: ^(.*?) (\d+)( -.*)
Replace with: \1 [\2]
Destination field: series

You will need to remove the information from the title using a second pass.
Excellent!!! Thank you!
MelBr is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Vers 7 CMD-V does not work into the search and replace fields GregTheGrate Sigil 25 04-22-2013 12:54 PM
Help with a search & replace mmholt Library Management 11 10-21-2011 06:49 PM
Search & Replace :help: krussell Calibre 3 08-02-2011 04:45 PM
Edit MultiData Search and Replace to multiple fields Doug-W Library Management 1 02-22-2011 03:17 PM
Search & Replace Pat Nickholds Sigil 2 10-21-2010 11:18 PM


All times are GMT -4. The time now is 06:49 PM.


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