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.
|