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-10-2011, 07:59 AM   #1
lathom
Kindle user
lathom began at the beginning.
 
Posts: 21
Karma: 10
Join Date: Mar 2011
Location: Falls Church, VA
Device: Kindle
Metadata/regex help

Trying to get part of the title into the series_index field. Can someone tell what I'm doing wrong from the attached screenshot?

Thanks!
Attached Thumbnails
Click image for larger version

Name:	title-series.jpg
Views:	86
Size:	168.9 KB
ID:	78813  
lathom is offline   Reply With Quote
Old 11-10-2011, 09:34 AM   #2
capnm
Groupie
capnm knows the difference between 'who' and 'whom'capnm knows the difference between 'who' and 'whom'capnm knows the difference between 'who' and 'whom'capnm knows the difference between 'who' and 'whom'capnm knows the difference between 'who' and 'whom'capnm knows the difference between 'who' and 'whom'capnm knows the difference between 'who' and 'whom'capnm knows the difference between 'who' and 'whom'capnm knows the difference between 'who' and 'whom'capnm knows the difference between 'who' and 'whom'capnm knows the difference between 'who' and 'whom'
 
Posts: 150
Karma: 10001
Join Date: Feb 2011
Device: sony
You're only replacing what you grab, so you need to grab the whole string.

(\d+).*

or

(\d+)-.*
capnm is offline   Reply With Quote
Old 11-10-2011, 09:41 AM   #3
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: 15,093
Karma: 5939999
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by lathom View Post
Trying to get part of the title into the series_index field. Can someone tell what I'm doing wrong from the attached screenshot?

Thanks!
You are thinking you can do this in one pass

Step 1 (you are mostly there)
grab the numeric before the dash and shove it into the Series_index (this assumes the CORRECT Series Name is present)

Step 2 (after verifying step 1 succeeded)
Remove the numeric and Dash, (Same find, no replace value) in the title.
theducks is online now   Reply With Quote
Old 11-10-2011, 02:52 PM   #4
lathom
Kindle user
lathom began at the beginning.
 
Posts: 21
Karma: 10
Join Date: Mar 2011
Location: Falls Church, VA
Device: Kindle
Quote:
Originally Posted by capnm View Post
You're only replacing what you grab, so you need to grab the whole string.

(\d+).*

or

(\d+)-.*
That did the trick - thanks very much!
lathom 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 me with regex please. eVrajka Library Management 5 08-15-2011 01:17 PM
[Metadata Download Plugin] Goodreads Metadata **Deprecated** kiwidude Plugins 30 04-23-2011 03:10 PM
What is the difference between the main metadata.db and sub-directory metadata.db? iridius Library Management 5 02-23-2011 12:44 PM
RegEx - filename metadata help ejjenkins Calibre 4 12-28-2010 06:47 PM
Regex and Metadata from filename. asrrin29 Calibre 2 09-20-2010 06:13 PM


All times are GMT -4. The time now is 05:35 PM.


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