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 02-07-2012, 08:01 PM   #1
CWatkinsNash
IOC Chief Archivist
CWatkinsNash ought to be getting tired of karma fortunes by now.CWatkinsNash ought to be getting tired of karma fortunes by now.CWatkinsNash ought to be getting tired of karma fortunes by now.CWatkinsNash ought to be getting tired of karma fortunes by now.CWatkinsNash ought to be getting tired of karma fortunes by now.CWatkinsNash ought to be getting tired of karma fortunes by now.CWatkinsNash ought to be getting tired of karma fortunes by now.CWatkinsNash ought to be getting tired of karma fortunes by now.CWatkinsNash ought to be getting tired of karma fortunes by now.CWatkinsNash ought to be getting tired of karma fortunes by now.CWatkinsNash ought to be getting tired of karma fortunes by now.
 
CWatkinsNash's Avatar
 
Posts: 3,950
Karma: 53868218
Join Date: Dec 2010
Location: Fruitland Park, FL, USA
Device: Meebook M7, Paperwhite 2021, Fire HD 8+, Fire HD 10+, Lenovo Tab P12
Regex help needed to fix titles

I have some series books that have the series info in the title. (Yes, I did this, way back before I started using plugboards, and I'm just now getting around to fixing some of them.) I have a rudimentary knowledge of regex (in fact, I think that's how I got them this way to begin with), but I can't get my head around this one.

Ex: Series Name 4 - Title

I need to remove everything before the title. Help?
CWatkinsNash is offline   Reply With Quote
Old 02-07-2012, 08:31 PM   #2
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,928
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by CWatkinsNash View Post
I have some series books that have the series info in the title. (Yes, I did this, way back before I started using plugboards, and I'm just now getting around to fixing some of them.) I have a rudimentary knowledge of regex (in fact, I think that's how I got them this way to begin with), but I can't get my head around this one.

Ex: Series Name 4 - Title

I need to remove everything before the title. Help?
First of all, use Search and Replace tab on the Bulk Metadata editor

Select books with an Identical problem:

The Search field: Title
The mode is Regex
the pattern: (.+ \d+ - ) Note the spaces surrounding the dash and just before the \d

The samples should Exactly agree with what you want. (adjust or remove) undesired changes. pay attention to non-discernible leading spaces. move the cursor. if it stay at the front of the first letter, you still have a space
Apply

space\d+space matches the numbers (any quantity together)
theducks is offline   Reply With Quote
Advert
Old 02-07-2012, 08:38 PM   #3
CWatkinsNash
IOC Chief Archivist
CWatkinsNash ought to be getting tired of karma fortunes by now.CWatkinsNash ought to be getting tired of karma fortunes by now.CWatkinsNash ought to be getting tired of karma fortunes by now.CWatkinsNash ought to be getting tired of karma fortunes by now.CWatkinsNash ought to be getting tired of karma fortunes by now.CWatkinsNash ought to be getting tired of karma fortunes by now.CWatkinsNash ought to be getting tired of karma fortunes by now.CWatkinsNash ought to be getting tired of karma fortunes by now.CWatkinsNash ought to be getting tired of karma fortunes by now.CWatkinsNash ought to be getting tired of karma fortunes by now.CWatkinsNash ought to be getting tired of karma fortunes by now.
 
CWatkinsNash's Avatar
 
Posts: 3,950
Karma: 53868218
Join Date: Dec 2010
Location: Fruitland Park, FL, USA
Device: Meebook M7, Paperwhite 2021, Fire HD 8+, Fire HD 10+, Lenovo Tab P12
Works perfectly, and your explanation allowed me to adapt it for a few that were a little different. Yay!
CWatkinsNash is offline   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
Help with regex needed. kamanza Library Management 3 01-24-2012 07:27 AM
RegEx Help needed ghostyjack Sigil 14 11-02-2011 10:22 AM
Regex - Library Order Fix? penguinaka Library Management 3 07-29-2011 03:59 AM
regex to fix up hyphenated words please cybmole Sigil 2 01-06-2011 04:13 AM
Regex help needed gandor62 Calibre 2 11-04-2009 10:27 AM


All times are GMT -4. The time now is 07:51 AM.


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