View Single Post
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