Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 12-28-2013, 10:10 AM   #1
Chaos_Therum
Junior Member
Chaos_Therum began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Dec 2013
Device: Nook simple touch, Nook HD+, Nook Tablet
Help with some regex

I made a regex for importing some books it output the proper metadata information in the little test utility included with calibre but in actual practice it doesn't work at all. I was wondering if anyone could help me with making a regex for this string

<tag> - <series>, <series index> - <title>.txt
what I have so far.
(?P<tag>.+?) - (?P<series>.+?), (?P<series_index>.+?) - (?P<title>.+)
it works in the python interpretter and in the tester in calibre but when I actually import it doesn't work it sets the title to that of the entire file name.

Last edited by Chaos_Therum; 12-28-2013 at 11:23 AM.
Chaos_Therum is offline   Reply With Quote
Old 12-28-2013, 11:20 AM   #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: 31,057
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 Chaos_Therum View Post
I made a regex for importing some books it output the proper metadata information in the little test utility included with calibre but in actual practice it doesn't work at all. I was wondering if anyone could help me with making a regex for this string

<tag> - <series>, <series index> - <title>.txt

Edit: Misspelled the title whoops don't know how to fix it though.

Spelling fixed -[mod]

I will leave the Import template expression to the real experts (it seems to alays take me 27 tries to get it right)
theducks is offline   Reply With Quote
Advert
Reply

Tags
calibre, import, metadata, regex


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Regex help paulfiera Sigil 4 06-14-2012 07:55 AM
RegEx Help ghostyjack Workshop 4 03-22-2012 09:24 AM
Help me with regex please. eVrajka Library Management 5 08-15-2011 12:17 PM
regex help please thevoiceofcheese Calibre 2 08-01-2011 11:27 PM
Help with a regex A.T.E. Calibre 1 04-05-2010 07:50 AM


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


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