|
|
#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 12:23 PM. |
|
|
|
|
|
#2 | |
|
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,276
Karma: 62000000
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 to get it right)
|
|
|
|
|
| Advert | |
|
|
![]() |
| Tags |
| calibre, import, metadata, regex |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Regex help | paulfiera | Sigil | 4 | 06-14-2012 08:55 AM |
| RegEx Help | ghostyjack | Workshop | 4 | 03-22-2012 10:24 AM |
| Help me with regex please. | eVrajka | Library Management | 5 | 08-15-2011 01:17 PM |
| regex help please | thevoiceofcheese | Calibre | 2 | 08-02-2011 12:27 AM |
| Help with a regex | A.T.E. | Calibre | 1 | 04-05-2010 08:50 AM |