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 06-26-2015, 04:31 AM   #1
unabatedshagie
Member
unabatedshagie began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Jan 2014
Device: Kindle Paperwhite 2
Help with a regex for renaming a book

I have my book titles named a particular way so they display in the correct order when I view them on my Kindle.

#01 | {book title}

Where 01 is the number of series/sub series.

I've got the following:
  1. Search field: series_index
  2. Search for: ^(\d{1,2}).0$
  3. Replace with: #0 |
  4. Destination field: title

Now I'm not 100% sure how I'd get the group from the search and insert it in the replace. I don't even know if it's possible.
unabatedshagie is offline   Reply With Quote
Old 06-26-2015, 04:43 AM   #2
theducks
Grand Sorcerer
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: 16,940
Karma: 10252998
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Astak Pocket Pro, K4NT,Galaxy Tab 2
Quote:
Originally Posted by unabatedshagie View Post
I have my book titles named a particular way so they display in the correct order when I view them on my Kindle.

#01 | {book title}

Where 01 is the number of series/sub series.

I've got the following:
  1. Search field: series_index
  2. Search for: ^(\d{1,2}).0$
  3. Replace with: #0 |
  4. Destination field: title

Now I'm not 100% sure how I'd get the group from the search and insert it in the replace. I don't even know if it's possible.
Don't muck with the Library names, use the metadata Plugboard to add {series_index} | to the title
theducks is online now   Reply With Quote
Reply

Tags
regex

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Add book regex help macnab69 Conversion 2 06-16-2013 01:00 AM
Regex: File Renaming Pre-Import & Importing penguinaka Library Management 20 08-14-2012 06:11 PM
Book File Renaming (the Ultimate) penguinaka General Discussions 0 08-02-2011 04:35 PM
renaming a book during conversion RAH Calibre 8 10-29-2010 07:07 AM
Renaming a Book ? - Sony 505 vally Sony Reader 7 02-07-2009 08:27 PM


All times are GMT -4. The time now is 01:29 PM.


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