![]() |
#1 |
Junior Member
![]() 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. |
![]() |
![]() |
![]() |
#2 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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:
Spelling fixed -[mod] I will leave the Import template expression to the real experts (it seems to alays take me 27 tries ![]() |
|
![]() |
![]() |
Advert | |
|
![]() |
Tags |
calibre, import, metadata, regex |
|
![]() |
||||
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 |